ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Display Random Layer

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Eric Barker
Re: Display Random Layer
on May 19, 2011 at 9:15:56 pm

Eh, that caused some problems when trying to animate the Framehold value, because every time the value would switch, the math might work to make the picture switch at the very next frame again. Basically every time the framehold value change, it would suddenly pick a new image, and it looked very glichy.

So in the end, I did it the way AE wants you to do it:

posterizeTime(Math.floor(effect("Framehold")("Slider")));

Math.floor(random(2,thisComp.numLayers+1));


I guess that's nice, you can force AE to only evaluate your expression every x amount of frames. I was just hoping to challenge myself to do this on my own, but I'm running out of time.

Television Producer
KTVF-11 Fairbanks, Alaska
video.ericbarker.com


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]