-
How to offset this expression that wiggles a layer every 4 frames?
Hello. I modified Dan’s expression.
https://forums.creativecow.net/thread/227/11235
It wiggles a layer every 4 frames, but I want to change the starting point, I want to offset it.
Right now the expression starts at 4 frame, but I want to make it start at 2 frame.
So I want to wiggle a layer not on frame 4,8,12,16,20,,,,, but on frame 2,6,10,14,16,,,,,,, .
Is it possible?And one more question. I want to reset the position that is modified by this expression on every 4 frames.
I mean, on 2 frame, I want to wiggle the position,
and on 4 frame I want to reset the position,
and on 6 frame wiggle again , on 8 frame reset again, on 10 frame wiggle, on 12 reset,,,,,,, .
In a word
Wiggling position on frame 2,6,10,14,16,,,,,,,
Resetting position on frame 4,8,12,16,20,,,,,I guess I need to use if else or add a “value ;” line, but I don’t know how to do.
Give me your advice.Thank you in advance.period = 4; // frames
posterizeTime(1/(period*thisComp.frameDuration));
wiggle(10,500)