Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

wiggle() max position

Cow Forums : Adobe After Effects
wiggle() max position
by Tyler Leisher on Feb 13, 2008 at 2:03:04 am

Hi, I have some text that I want to whip widely around the frame, and I'm doing so with the wiggle() expression, but it sometimes goes off frame, is there anyway to set a max position or a frame for the wiggle to work around in?



Respond to this post   •   Return to posts index

Re: wiggle() max position
by Darby Edelen on Feb 13, 2008 at 8:04:46 pm

[Tyler Leisher] "is there anyway to set a max position or a frame for the wiggle to work around in?"

The maximum and minimum variation to the position is the amplitude of the wiggle, if you look at the structure of the function:

wiggle(frequency, amplitude);

wiggle() will modify the input (in your case position) by -amplitude to amplitude in both dimensions... So if you apply:

wiggle(1, 100);

To a position of [360,240] then your minimum position will be [260, 140] and your maximum will be [460, 340]. If you don't want your 'frame' to be a square then you need to apply separate wiggles to the X and Y dimensions:

x = wiggle(1, 200)[0];
y = wiggle(1, 100)[1];
[x,y]


The above would wiggle the value by -200 to 200 in the X dimension and -100 to 100 in the Y dimension.

Darby Edelen
Designer
Left Coast Digital
Santa Cruz, CA

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]