Can you explain something for me with this valueAtTime thing please? If you evaluate(time - d) it will be negative sometimes, what does this mean or do to the valueAtTime if the argument (time - d) is negative?
Hey - sorry just saw this comment. You can use positive and negative values in valueAtTime, for example (time-d) and time+d). For example, if you are using this on a position property, then AE will check for any changes to that property "in the past" or "in the future". You will have delay effect - layers will move after your master layer moves, or an anticipation effect - layers will move before your master layer moves. Both ways are correct. It just depends what you want to do. Delay or anticipate movement in your animation.
You expression works great, thanks. But my shapes have not all the same size (big square, little square, rectangle etc.) and they all move in diagonal (bottom left corner to top right corner). What expression should I use so the all move with a delay and follow each other at the same distance without staking up on top of each other. I was be able to make the diagonal delay movement by getting rid off the ''[0]'' in ''sourceLayer.position.valueAtTime(time - d);'' but the don't keep the same distance and end up stacking up.
Idea is to add ValueAtTime code to any value you want to delay - position, scale, opacity or even other animated properties and sliders. And by setting up delay system with slider and layer index, you can delay lots of layers easily that share the same animation. There is more write up on my blog - link in the video description.
Fantastic 🤩
Can you explain something for me with this valueAtTime thing please?
If you evaluate(time - d) it will be negative sometimes, what does this mean or do to the valueAtTime if the argument (time - d) is negative?
Hey - sorry just saw this comment.
You can use positive and negative values in valueAtTime, for example (time-d) and time+d). For example, if you are using this on a position property, then AE will check for any changes to that property "in the past" or "in the future". You will have delay effect - layers will move after your master layer moves, or an anticipation effect - layers will move before your master layer moves.
Both ways are correct. It just depends what you want to do. Delay or anticipate movement in your animation.
You expression works great, thanks. But my shapes have not all the same size (big square, little square, rectangle etc.) and they all move in diagonal (bottom left corner to top right corner). What expression should I use so the all move with a delay and follow each other at the same distance without staking up on top of each other. I was be able to make the diagonal delay movement by getting rid off the ''[0]'' in ''sourceLayer.position.valueAtTime(time - d);'' but the don't keep the same distance and end up stacking up.
The tutorial Expression is different than the the actual given expression so not working. Need homework first.
Idea is to add ValueAtTime code to any value you want to delay - position, scale, opacity or even other animated properties and sliders. And by setting up delay system with slider and layer index, you can delay lots of layers easily that share the same animation. There is more write up on my blog - link in the video description.