-
Make the camera wiggle start and stop multiple times
I’m new with this thing of expressions in After Effects.
I’m making a composition whit lots of camera movements, and when it focuses on some object, it needs to wiggle.The code that I got from one of the Adobe Help pages turned out like this:
timeToStart = 30;
timeToStop = 34;if ((time > timeToStart) && (time < timeToStop)){
wiggle(0.75,4);
}else{
value;
}But I need the wiggle to start and stop multiple times. I did some kind of variable to work for the values of the time I wanted to start and stop,it looks like this:
movestart=[30,36,42];
moveend=[34,40,46];timeToStart = movestart;
timeToStop = moveend;if ((time > timeToStart) && (time < timeToStop)){
wiggle(0.75,4);
}else{
value;
}But it didn’t work ( of course). Can someone give me a help on how to make the “timeToStart” and “timeToStop” capable of reading multiple values? Maybe it’s a variable thing in the end…I can also make new cameras for each object, but I think there may be a better way with expressions.
Thanks for your time. 🙂