Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Need to control two key frames with expression

  • Need to control two key frames with expression

    Posted by Anoop Kumar on May 29, 2015 at 6:22 am

    Hi CC,

    Here is my first post!!!

    I am doing a shape layer (trim) animation. The keyframes are set to “end” value from 0–100 (time 0–2 Seconds). Now I need to control this speed with a controller, I think I can use sliderControl for this. Any help to do this with expressions will be great.

    Mark Borgions replied 11 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Mark Borgions

    June 8, 2015 at 10:24 am

    There might be a better way, but I do this kind of thing with a marker (on layer or comp level)
    Then have a slider control the time offset in seconds.

    Hope this helps.

    Mark

    endFrame = thisLayer.marker.key("MARKERNAME").time ;
    timeOffset = pickwhip-the-slidercontrol ;
    linear (t=time, endFrame-timeOffset, endFrame, 0,100)

  • Anoop Kumar

    June 9, 2015 at 10:03 am

    Thanks so much Mark!!! Very very helpful!! I’ve got what I needed. But I’ve made some slight edits to the expression. Below is the one which I’ve used. Thanks so much!!!!

    startFrame = thisLayer.marker.key("1").time ;
    timeOffset = -1*comp("Contorls").layer("Contorls").effect("Animation Offest (Speed)")(1);
    ease,ease (t=time, startFrame-timeOffset, startFrame, 0,100)

    Anoop

  • Mark Borgions

    June 9, 2015 at 10:05 am

    You’re welcome

    M

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