I have a picture of a night cityscape with loads of buildings. I basically need to switch of all the lights in the city. The scene is 12 seconds long and the lights need to go off randomly throughout the whole city. I masked all the windows (and there are hundreds and hundreds of them) and I’m trying to figure out how to do the job without doing it manually.
Does any of you know an expression that would randomly change the Mask Opacity from 100% to 0%?
I found few expressions that make the layers blink but I couldn’t find any that would knock down the opacity to 0 and make it stay there.
I saw the incredible handy expression you created for Kuba, and I used for a similair project with a skyline and a bunch of layers.
Now the project is evolving and I was wondering, since I am fairly new to expressions in AE, is there a easy add to let the opacity wiggle between 100% and 0% at multiple random moments.
So to more clear: it would not just turn on or off once, but sometimes it would turn on and some times it would turn on, randomly. Or if it is easier with an predetermined frequency I can alter?
the expression “wiggle(1,100) < 100 ? 0 : 100” is what i was looking for, but it’s a bit brutal. How can I add smoothing to it? For it to change from 0 to 100 and vice versa but with 4 frames of transition?
I’ve tried to add something like seedRandom(time*5); but it doesn’t work