Skip to main content
S_ A
Inspiring
February 20, 2026
Answered

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

  • February 20, 2026
  • 1 reply
  • 66 views

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.

 

 

Correct answer Dan Ebberts

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

 

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
February 20, 2026

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

 

S_ A
S_ AAuthor
Inspiring
February 21, 2026