Hi Dan,
It’s my first time posting here on this forum, kind of excited and hope I can make it work 🙂
Apparently this subject (Start/Stop Expression at Specific Time) has been out here for a long time, and even though I think I thoroughly looked into it, somehow I couldn’t make the code work for me 🙁
Basically, I wanted my expression to start at a certain frame but as I just mentioned I couldn’t figure out what I’m doing wrong after I spent 3 hours and gave up at this point!
I have a composition with 12fps and I have my TEXT layer, which I applied the expression on ‘the expressions code box’ below to its POSITION parameter, hoping that it would move on x-axis, however it doesn’t do anything at all!
But when I just use this code below:
freq = 15;
amplitude = 100;
decay = 3;
x = amplitude*Math.cos(freq*time*2*Math.PI)/Math.exp(decay*time);
position + [x,0];
Then it works but it starts moving at the beginning of my composition, not on the frame I want it to.
I tried everything that has been mentioned on this thread ( interestingly some scripts don’t even work at all for me) and I did search on Adobe’s forum as well, which I’ll post there as well in a second 🙂
So what am I doing wrong ?
How am I going to make my expression work and move the TEXT layer as it is supposed to on that specific frame I would like to ?
Any kind of answer/help/explanation will be greatly appreciated 🙂
Have a great day!
cheers,
Sefik
beginTime = 40;
if (time > beginTime) {
freq = 15;
amplitude = 100;
decay = 3;
x = amplitude*Math.cos(freq*time*2*Math.PI)/Math.exp(decay*time);
position + [x,0];
} else {
0
}