Copy link to clipboard
Copied
hi
not sure if it's even a wiggle expression I'm after,
but I'm wondering how to go about getting a series of random values that an object or parameter will jump to (rather than smoothly transition to, as in the basic wiggle expression).
thanks
ML
Copy link to clipboard
Copied
just messing with it a bit...it looks like one option is to pre-comp a wiggled layer, then use the posterize time effect on the precomp....
any other methods out there?
ML
Copy link to clipboard
Copied
That is probably the easiest.
Copy link to clipboard
Copied
thanks Rick
ML
Copy link to clipboard
Copied
you could actually just add a posterizeTime expression before your wiggle — like so:
posterizeTime(12); // number in parentheses is the frame rate you want to wiggle at — lower number = more "stepped //
wiggle(5, 50)
Copy link to clipboard
Copied
Hi
You can use the extended wiggle parameters like this to create the required jumps:
wiggle(2,200, 1, .5, time-time%.5)
just change the numeric value of the "time-time%.5" parameter
for example:
wiggle(2,200, 1, .5, time-time%.5) jump every 0.5 seconds
wiggle(2,200, 1, .5, time-time%1) jump every 1 second
wiggle(2,200, 1, .5, time-time%2) jump every 2 seconds
wiggle(2,200, 1, .5, time-time%.3) jump every 0.3 seconds
the first and the second parameters (2,200) determine the frequency and amplitude as usual.
I hope this will shorten up things for you
Liran Tabib
Copy link to clipboard
Copied
iExpressions also contains a "snapping Wiggle" which is like first applying a normal wiggle and then snapping it to a grid such that if effectively jumps from one grid line to the next one.
As any iExpression, it comes with an intuitive user interface:
iExpressions is a commercial extension for After Effects that I develop and that is available here:
iExpressions 2 - aescripts + aeplugins - aescripts.com
Copy link to clipboard
Copied
Check out this awesome page by MotionScript
Here's a quick breakdown of what's likely useful to you.
pause=1; // How long to hold in each position
seed = Math.floor(time/pause); // Generates seed random values
seedRandom(seed,true); // Gives random seed over time
random([thisComp.width, thisComp.height]) // Gives random X, Y values based on Comp width & height