on Oct 24, 2014 at 1:08:10 pm Last Edited By Alexander Schlosser on Oct 24, 2014 at 1:42:50 pm
I’m new to the world of expressions and have a problem that sounds pretty easy to me (but it actually drives me crazy).
I’ve tried to find an answer all over the internet but couldn’t find it (or I might’ve just searched for the wrong keywords).
What I’m trying to do:
I have 30 hidden layers (0% opacity) that should get visible in a random order.
Therefore, I set up a counter that runs through an array of different numbers.
I added the following expression to the opacity attribute of every layer:
n = 6;
slider = thisComp.layer("control").effect("Einstellungen für Schieberegler")("Schieberegler");
if (slider == (n - index)) 100 else 0;
And it actually works pretty well and changes the opacity to 100% at the right time.
The problem is just that it jumps back to 0 in the next frame. However, I want it to keep 100 as a value for the rest of the time.
Is there an easy solution to do so?