Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects wiggle() max position

  • wiggle() max position

    Posted by Tyler Leisher on February 13, 2008 at 2:03 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?

    Darby Edelen replied 18 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Darby Edelen

    February 13, 2008 at 8:04 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy