FORUMS: list search recent posts

One null, controlling multiple objects, offset

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Brad Graber
One null, controlling multiple objects, offset
on Feb 9, 2015 at 7:59:22 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



Return to posts index

Dan Ebberts
Re: One null, controlling multiple objects, offset
on Feb 9, 2015 at 8:22:34 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



Return to posts index

Brad Graber
Re: One null, controlling multiple objects, offset
on Feb 9, 2015 at 8:45:55 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


Return to posts index


Dan Ebberts
Re: One null, controlling multiple objects, offset
on Feb 9, 2015 at 10:28:36 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



Return to posts index

Brad Graber
Re: One null, controlling multiple objects, offset
on Feb 10, 2015 at 4:47:23 pm

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]