Skip to main content
Participating Frequently
April 4, 2024
Question

An expression to get the delay time

  • April 4, 2024
  • 1 reply
  • 477 views

Hello everyone!
I know, I know, you've been asked that question a million times 😃 But somehow I still can't get the current "valueAtTime" from the Slider Control layer. 

I want the animation to start with the correspondent layer (it's "Outlines 2 " in the screen). Meaning a delay must be equal to the current comp time. But whatever I do the delay doesnt seem to pick the current time (the value between Control-Delay keyframes) but takes only the last keyframe value (which is 3 on the sceen). So if I move the below layer - the animation will start at 3 seconds anyway. Doesn't pick the values in between...
Could you pleae tell me what am I doing wrong? )

Thanks!
Anastasia.

 



P.S. I want the value only for vector-layer, one of the scales (another one is always 100% so it says firmly "100" in the expression as one of the parameters). 

This topic has been closed for replies.

1 reply

Mylenium
Legend
April 4, 2024

You need to integrate the values if you animate dynamic parameters. AE has no built-in persistence of values. Read this to understand the problem and grab the relevant code bits:

 

https://motionscript.com/articles/speed-control.html

 

Mylenium 

msFiBiAuthor
Participating Frequently
April 5, 2024

Thank you.
It seems like no "simple way" without knowing math (
BUT I figured the task out by "start animation at marker point" and it's exactly what I needed. Just had to place the market at the beginning of every layer and then moved the layer and animation moved with layer, whoohoo!