AE expression
Out of context: Reply #7
- Started
- Last post
- 8 Responses
- akiersky0
so I would comp the eyes blinking, and parent that to the comp of the guy walking, so the eyes follow the position of the walk. then in your main comp you can write an expression to loop the guy walking. add the Time Remap to the walking guy then option/alt click on the stopwatch and enter this:
loopOut("cycle")then write another expression on the eyes that grabs a random number and if that number is above/below a threshold (number) tell that comp to play. so again add the Time Remap, option/alt click the stopwatch and enter this:
t=random(1,5)
if(t==1){
0
}
you may have to adjust the random max value to get the frequency of blinking for your guy because it will grab a random number each frame, so something like random(1,30) may give a better result.check out
http://www.motionscript.com/
or
http://www.graymachine.com/wp09/…
for some great tutorials on expressions.