Copy link to clipboard
Copied
Hi,
I'm new to expressions and I need to start and stop the expression at specific frames.
My expression as follows:
f = effect("Frequency")(1);
p = effect("Period")(1);
Math.cos(p * textIndex/textTotal + time*f)*50
Thanks in advance for all your help!
I'm not sure if this is what you're after, but this expression will run from frame 10 to fame 30--outside that range, it will be like the expression isn't there:
fStart = 10;
fStop = 30;
if (time >= framesToTime(fStart) && time < framesToTime(fStop)){
f = effect("Frequency")(1);
p = effect("Period")(1);
Math.cos(p * textIndex/textTotal + time*f)*50;
}else
value
Dan
Copy link to clipboard
Copied
I'm not sure if this is what you're after, but this expression will run from frame 10 to fame 30--outside that range, it will be like the expression isn't there:
fStart = 10;
fStop = 30;
if (time >= framesToTime(fStart) && time < framesToTime(fStop)){
f = effect("Frequency")(1);
p = effect("Period")(1);
Math.cos(p * textIndex/textTotal + time*f)*50;
}else
value
Dan
Copy link to clipboard
Copied
Thanks so much Dan of the prompt reply!
Do you know how can I slow down the wavy effect from my expression all the way to zero? I know I'm abusing at this point!
Thanks again.
Federico
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks for the link Dan. I'll get into it.
F
Copy link to clipboard
Copied
Hey Dan,
I found a solution using Slider Controls on my expression and it worked just fine.
Thanks again!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now