Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Parented layer position multiplier?

  • Parented layer position multiplier?

    Posted by Navarro Parker on January 25, 2013 at 8:35 pm

    If I have Layer A parented to Layer B. How can I make Layer A move at 125% percent of the parent’s speed?

    Kind of like a fake multiplane with layers that aren’t in AE’s 3D space.

    I un-parented the layer and tried this expression, but got an error

    p = thisComp.layer(“Tower 1 Null”).transform.position[0];
    [value + (1.2 * p)[0],value[1]]

    Navarro Parker replied 13 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 25, 2013 at 9:16 pm

    I think I’d try this:

    mult = 1.25;
    p = thisComp.layer(“Tower 1 Null”).transform.position;
    v = p – p.valueAtTime(inPoint);
    value + v*mult

    Note that nothing will happen until you animate the null (the expression looks for movement compared to where it was at the in point).

    Dan

  • Navarro Parker

    January 25, 2013 at 9:30 pm

    Works great!

    I had come up with this, but it shifts the layer and requires anchor point adjusting.

    temp = thisComp.layer(“Tower 1 Tracked Null”).transform.position[0];
    [temp * 3, 540]

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