say i have a layer, and i want to turn its opacity down every 2 second.
maybe i've been working on this so long, that i cant see the solition and im overcomplicating things.
logic sais to do it like this:
Code: Select all
if( (time % 2) == 0 ){
transform.opacity = transform.opacity - 20;
}
Code: Select all
if( (time % 2) == 0 ){
val=val - 20;
}
the basic idea is to remember value of a given variable from last frame.
i thought about creating a workaround using seedRamdom with timeless set to true, and random(x,x), to generate a value and keep it but its all the same.
my first choice was to use valueAtTime, but somehow i couldn't get it to work.
so... to sum up.... try to write an expression, that will fade out a layer, making it more transparent... even on every frame - only using your own variables, without using time functions.
if AE would treat each frame as one cycle of the loop, that this would do:
Code: Select all
transform.opacity--;
so... any ideas?