Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions time delay from the leading position Z

  • time delay from the leading position Z

    Posted by Leif Heidenreich on March 28, 2010 at 5:19 pm

    hello world,

    i am having multiple layers offseted on the x axis, wich should appear from the distance, one after the other. i created a control layer, with a keyframed animation for the z position. from there, i would like all the other layers to follow the z postion with a delay, of e.g 5 frames. their genuine x and y position should be untouched by the leaders values…

    time and expression allways get me…

    delay = thisComp.layer("Control Layer").effect("delay control")("Slider");
    d = delay*thisComp.frameDuration*(index - 1);

    [position[0], position[1], thisComp.layer("Control Layer").transform.position[2].valueAtTime(time - d)]

    Leif Heidenreich replied 16 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Curious Turtle

    March 29, 2010 at 6:19 am

    You’ve got the valueAtTime in the wrong place:

    delay = thisComp.layer("Control Layer").effect("delay control")("Slider");
    d = delay*thisComp.frameDuration*(index - 1);

    [position[0], position[1],thisComp.layer("Control Layer").transform.position.valueAtTime(time-d)[2]]

    That’ll work.

    Cheers,
    Ben

    Curious Turtle Pro Video
    Training | Editing | Support
    Out Now – Creative Color Grading with Apple Color, Film Wash Color Effects Vol. 3
    & Mocha training for AE & FCP

  • Leif Heidenreich

    March 29, 2010 at 7:10 am

    works fine now

    thanks for the fix, ben

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