-
Randomly turn on and leave on multiple shape layers using opacity
I’ve got a comp with a bunch of shape layers, and I want them to turn on randomly by going from 0 to 100 opacity and then once on, stay on. The top shape layer fill is keyframed to accomplish this, and I tried to have the subsequent (lower layers) turn on randomly using an offset expression (connected to a slider to control the amount). This has gotten me part of the way there, I just can’t figure out how to randomize the offset and keep the layer on once it’s on….
offset = thiscomp.layer(“ADJUSTMENTS”).effect(“Opacity Offset”)(“Slider”)
thisComp.layer(index-1).content(“Fill 1”).opacity.valueAtTime(time – offset)I also tried this:
r=random(100)
if (r<=99) {0} else {100}Which turns layers on randomly but again I can’t keep them on and I also can’t control the offset.
Can anyone educate me on where I’m going wrong?
Thanks in advance for any help.Kenny