So, I've a bunch of objects inside a composition and my ideia is the following:
I want to create an expression in one of them that will change the opacity of that object to 0
after a random time. Then I'm planning to apply this to all objects creating the effect of the objects disappearing at random.
I was looking on the web, and trying to play with this:
maxOffset = 20
seedRandom(index,true);
offset = framesToTime(random(maxOffset));
valueAtTime(time-offset)
But I can't make it work the way I described. What should happen is:
- Generate a random frame number between 0 and value of
maxOffset
; - When the random frame number matches current time change object opacity to zero;
Thank you.