These should work:
this really helps! Thank you so much.
Only one more question, because how can I change the number of frames it delays on this expression?
2 people found this helpful
This should work:
delayFrames = 3;
delay = framesToTime(delayFrames);
Again this works perfect! Thank you!
Dan, it's been 4 years since this originally was posted... but I'm just finding it!
I want to use the "leader" layer to control multiple objects. I have three boxes on screen and one Null (leader).
The Null's Y position is keyframed to move onto the screen from the bottom.
I want box #1 to come on with a delay (as explained above) which works fine.
I want box #2 to come on with a slightly longer delay (easy enough), but I want it to come down from the top of the screen: to mirror the Null's motion.
I know that there's probably 5 year olds out there that can do this for me... but, I'm at the office.
3 people found this helpful
Hey Bryan, I don't know if you'd still care for a solution, as it has been a few years since you inquired.
I just stumbled upon this thread while looking for some answers for a different question of mine, but I recognized your name... Maybe you are a relative of one of my in-laws. I can't quite put my finger on it.
I'll start with my expression for the delay. I went with a "daisy-chain" expression in which the layer references other layers in respect to itself (index). The leader object contains the motion and no expression controls.
All layers below use this expression:
I used a slider to control my delay. Here's a screenshot of my timeline.
Here's the delay in action.
Now, to answer your question. You would like to keep the motion and delay, but have the object enter from the opposing side of the screen. This can be done by parenting that layer to a Null object. With the null, you can adjust any of the delayed layer's transform elements without effecting the delay expression.
In my example, I had to adjust my anchor point in order to center the layer where I wanted it.
Here is a screen shot of my timeline.
And finally here it is in action.
Like everything After Effects related, I'm sure there are a few different ways to skin this cat.
If you have questions, lemme know!
Hope this helps you out Bryan or really, anybody!
Interesting — there are a few Goughs out there, but it's not super common.
Also, it's a famous street name in San Francisco.
Thanks for taking time to work through this—it HAS been a while, so I can't even remember what this was for!?