Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Control Animation Between Keyframes with Sliders

  • Control Animation Between Keyframes with Sliders

    Posted by Dan Sip on February 20, 2016 at 11:38 pm

    I want to contol 4 keyframes with 2 sliders.

    (1 and 2 keytrame with Slider Control 1 but 3 and 4 keyframe with Slider control 2)

    Work only one (Slider Control 2).

    code that I use:

    valueAtTime(linear(thisComp.layer("Null 1").effect("Slider Control 1")("Slider"),0,100,key(1).time,key(2).time));
    valueAtTime(linear(thisComp.layer("Null 1").effect("Slider Control 2")("Slider"),0,100,key(2).time,key(3).time))

    Dan Sip replied 10 years, 2 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Sip

    February 21, 2016 at 1:10 pm

    is it possible to do that? please, help guys!

  • Dan Ebberts

    February 21, 2016 at 7:09 pm

    It’s not clear how you want this to work. What determines whether to use slider 1 or slider 2?

    Dan

  • Dan Sip

    February 21, 2016 at 10:31 pm

    I want to use both sliders.

    What I want to achieve, example:

    to make this thing work, I need the expression.
    Any ideas?

  • Dan Ebberts

    February 21, 2016 at 10:42 pm

    About the only tool you have to manipulate a path with an expression is valueAtTime(). So the resulting shape has to be something that is actually keyframed at some particular time. It looks like you’re trying to combine two different keyframed segments and I don’t know of any way to do that.

    Dan

  • Dan Ebberts

    February 22, 2016 at 1:55 am

    Maybe you can get what you want by using two masks on the same layer, the first set to add and the second set to subtract (inverted). Then keyframe both masks and attach each mask to its own slider.

    Dan

  • Dan Sip

    February 22, 2016 at 3:01 pm

    Yes, maybe two masks on the same layer, it is the best solution in this situation.

    Thank you, Dan)

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy