Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions follow the leader z-space

  • follow the leader z-space

    Posted by Matthew Tully on November 26, 2007 at 7:22 pm

    i have this expression attached to the position property of a comp.

    delay = 1; //number of frames to delay

    d = delay*thisComp.frameDuration*(index – 1);
    thisComp.layer(1).position.valueAtTime(time – d)

    This is a leader comp. The thing is i want to have each layer after located further back in Z-space.

    I know that i would usually just make an expression that uses index to have each copy move in space based on layer position. The problem is I can not figure our how to incorporate it into the above expression.

    please help! thanks in advance

    btw. this expression was taken from dan ebbert’s site. There are solutions there to tackle this problem, however I need to solve it the way suggested aboce.

    Matthew Tully replied 18 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 26, 2007 at 9:26 pm

    Something like this:

    delay = 1; //number of frames to delay
    zOffset = 25;

    d = delay*thisComp.frameDuration*(index – 1);
    z = zOffset*(index-1);
    thisComp.layer(1).position.valueAtTime(time – d) +[0,0,z]

    Dan

  • Matthew Tully

    November 27, 2007 at 4:45 pm

    thanks dan,

    i had tried something similar, but it was passing weird values to my y-axis. thanks for the help, you are a life-savor.

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