-
Small jump in size after time mark is passed
I’m applying the following expression to generate some scale trails with some layers.
I need to come as 1,2,3 and then leave 3,2,1.
This expression sort of works, however when the needle goes past 1 second the 3rd layer (the 2nd trailer) jumps its scale from 100 to 100.8. The layer above does not change.
I get an expression error warning from 1 second to 2 seconds and then it goes away.
The expression works despite the error warning except for the .8% jump in size.Any help is greatly appreciated
delay = thisComp.layer("xp").effect("d")("Slider")t=time;
d = delay*thisComp.frameDuration*(index - 1);
if
(t<1)
{
s=thisComp.layer(6).scale.valueAtTime(time - d)
}if
(t>2)
{
s=thisComp.layer(6).scale.valueAtTime(time + d)
}
s;