Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions One null, controlling multiple objects, offset

  • One null, controlling multiple objects, offset

    Posted by Brad Graber on February 9, 2015 at 7:59 pm

    Hi Friends,
    I want to have one null that controls multiple objects which scale up as the null translates on the Y axis. I know how to set that up, but how could I get the other objects to offset from one another so that they don’t all scale up at the same time?

    Thanks,

    BG

    Brad Graber replied 11 years, 3 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    February 9, 2015 at 8:22 pm

    Probably by adding something like this to your expression:

    .valueAtTime(time – delay)

    but the specifics (and the way you calculate delay) depend on how you have things set up and the expression you’re using now.

    Dan

  • Brad Graber

    February 9, 2015 at 8:45 pm

    Thanks for your response, Dan. Here’s what I’ve got so far, “temp = thisComp.layer(“Null 1″).transform.yPosition;
    [temp, temp]”
    How would your script fit into this, and what would it look like if I wanted to offset something by 10 frames?

    Thanks,
    Brad

  • Dan Ebberts

    February 9, 2015 at 10:28 pm

    It would be like this:

    delay = framesToTime(10)*(index-1);
    s = thisComp.layer(“Null 1”).transform.yPosition.valueAtTime(time – delay);
    [s,s]

    This assumes that the layers with the expression are at the top of the layer stack (i.e. the first layer is layer 1). If not, you’ll need to adjust the delay calculation.

    Dan

  • Brad Graber

    February 10, 2015 at 4:47 pm

    Cool, man! That’s working! Thanks for your help!

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