FORUMS: list search recent posts

Combine two sliders?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Don Jobs
Combine two sliders?
on Oct 27, 2016 at 8:28:09 pm

Hi,

please be gentle ;)... I've searched and searched but I don't get it....

I need two sliders (s1 and s2) in the same time... If s2 could override s1 that would be ok...

And here it is:

s1 = thisComp.layer("Null 4").effect("Slider Control")(1);
s2 =thisComp.layer("Null 4").effect("Slider Control 2")(1)
x1 = linear(s1,0,100,key(1).time,key(2).time)
x2 = linear(s2,0,100,key(2).time,key(3).time)
valueAtTime(x1) hm????
valueAtTime(x2) hm????

I would like to have control in animation between 1. and 2. keyframe (Slider 1) and 2. and 3. keyframe (Slider 2). So, two sliders working together like this:

if s1 = 0 (keyfame 1 active)
if s1 = 100 (keyfame 2 active)

if s2 = 0 (keyfame 1 or 2 active)
if s2 = 100 (keyfame 3 active only)

Thank you all so much for all the help here :)


Return to posts index

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