ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

changing the slider control range for another parameter!!

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
amin mashhadi
changing the slider control range for another parameter!!
on May 19, 2020 at 2:47:59 pm

Hi everyone
Im trying to make an stopwatch that goes from 5.2 to 0! and I've done that with slider control, no big deal! but i want to make a circle that shows this, and i've created a path with trim path. now how should I parent the end parameter of trim path to the slider control of my numbers, to get a range of 100 to zero instead of 5.2 to 0 and have a full circle!
I'm sorry I know it's probably something simple but I'm a noobie! and thank you for your further answers! :)


Return to posts index

Dan Ebberts
Re: changing the slider control range for another parameter!!
on May 19, 2020 at 5:59:09 pm

Something like this should work:

s = thisComp.layer("layer with slider").effect("Slider Control")("Slider");
linear(s,0,5.2,0,100)


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]