Copy link to clipboard
Copied
Hi,
I want a specific location icon to start its y axis animation (math sin) after a certain time period when the first animation ends. So, my first trim path animation ends at 185 frame. (6 sec 5 frame) , I dnt know how can I write the expression to tell the green location icon 'hey green location icon now you start your animation''. please help me. 😥
I can sense that I have to use value at time expression. but what should I write?😥
Wow, sorry. That was some bad typing on my part. Try this:
amp = 10;
freq = 1;
tStart = thisComp.layer("excuse line").content("Trim Paths 1").start.key(2).time;
t = Math.max(time - tStart,0);
y = amp*Math.sin(t*freq*Math.PI*2);
value + [0,y]
Copy link to clipboard
Copied
It seems like you should be able to tie it to one of the keyframes you have at that time. Without being able see the way you have it set up exactly, it's hard to know if this is the exact syntax you need, but it's probably going to look like this:
amp = 10;
freq = 1;
tStart = thisComp.layer("excuse line").content("Shape 1").content("Trim Paths 1").end.key(2).time;
t = Math.max(time - tStart,0);
y = amp*Math.sin((t*freq*Mathg.PI*2);
value + [0,y]
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Wow, sorry. That was some bad typing on my part. Try this:
amp = 10;
freq = 1;
tStart = thisComp.layer("excuse line").content("Trim Paths 1").start.key(2).time;
t = Math.max(time - tStart,0);
y = amp*Math.sin(t*freq*Math.PI*2);
value + [0,y]
Copy link to clipboard
Copied
IT WORKED!!!!!! Thank you so much. Thank you.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now