-
force a var to stop updating every frame
hi there,
is there a way to store the current time in a variable, when a specific event happens. or in other words: can i force a var to stop updating every frame?
in detail:
i have a keyframed slider control (1900 … 2000)
i have a bunch of layer which names goes like that: 1902_…/1904_../…with the following expression i set the opacity:
n = thisLayer.name;
a = n.split(“_”);
e = a[0];
if(e<=thisComp.layer("SLIDER").effect("SLIDER")("Slider Control")) 100; else 0;so far so good.
now i want that, if the layer’s opacity jumps to 100, the layer scales from 0 to 100 which would look like this:
ease(time, timeAtEvent, timeAtEvent+20, 0, 100)
tried to store the time in a variable in different ways (if else/while,…) but couldn’t get the variable to stop updating when the event shown above happens.
somebody got an idea?
thanks a lot