Skip to main content
S_ A
Inspiring
Feb 20, 2026 9:06 PM UTC
Answered

how to write expression in such case -19 (expression for termination of an effect)

Hi,

So I want to terminate an effect to work exactly at a certain point, but before reaching that very second the effect must continue. Is there any way I can use an expression for this? please help me.

 

 

Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Feb 20, 2026 10:06 PM UTC

Not sure if this is what you’re asking for, exactly, but try setting a comp marker at your stop time and add this expression to the Turbulent Displace Amount property:

m = thisComp.marker;
val = value;
if (m.numKeys > 0){
val = time >= m.key(1).time ? 0 : value;
}
val

 

3 replies

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Feb 20, 2026 10:06 PM UTC

Not sure if this is what you’re asking for, exactly, but try setting a comp marker at your stop time and add this expression to the Turbulent Displace Amount property:

m = thisComp.marker;
val = value;
if (m.numKeys > 0){
val = time >= m.key(1).time ? 0 : value;
}
val

 

Translate
S_ A
S_ AAuthor
Inspiring
Feb 21, 2026 5:37 PM UTC

 

Translate