Skip to main content
Known Participant
November 9, 2011
Answered

How to wiggle XYZ dimensions separately for Anchor Point

  • November 9, 2011
  • 1 reply
  • 25696 views

I need to wiggle my anchor point with different settings on each axis.  How can I do this?

I want the following:

for x: wiggle(1,1000);

for y: wiggle(.1,1000);

for z: wiggle(100,2);

Can't seem to figure out how to split the axis up.

Thanks!

    This topic has been closed for replies.
    Correct answer Dave_LaRonde

    You can split out the X, Y & Z POSITION properties individually:

    http://help.adobe.com/en_US/aftereffects/cs/using/WSB9C92251-D2B9-49de-8B7E-EE981AD17522.html

    That doesn't help with the anchor point, but you can work round that by parenting the layer position to a 3D null... which just happens to have the same position as the layer before doing the parenting.

    You can then wiggle layer position, and animate the null's position if desired.

    1 reply

    Dave_LaRonde
    Dave_LaRondeCorrect answer
    Inspiring
    November 9, 2011

    You can split out the X, Y & Z POSITION properties individually:

    http://help.adobe.com/en_US/aftereffects/cs/using/WSB9C92251-D2B9-49de-8B7E-EE981AD17522.html

    That doesn't help with the anchor point, but you can work round that by parenting the layer position to a 3D null... which just happens to have the same position as the layer before doing the parenting.

    You can then wiggle layer position, and animate the null's position if desired.

    Known Participant
    November 9, 2011

    Got it!  Thanks!  Makes sense.  I've broken up XYZ everywhere else, just couldn't here.  Glad to know I wasn't missing something.  Thanks, Dave!

    Community Expert
    November 10, 2011

    Rick Gerard wrote:

    All you're missing is the array:

    x = wiggle(1,1000);
    y = wiggle(.1,1000);
    z =wiggle(100,2);
    [x, y, z]
     
    

    or you can break out each axis. Either works.

    Hmm... I was trying to work on an array at first, but it kept breaking.   What more do a put in the expression to get it to work?  Right now this isn't totally complete.

    This is the route I'd rather go than have a bunch of nulls, if possible.

    Thanks for your help!


    OOPS! forgot to put in the x, y, and z values. Make the last line

    [x[0], y[1], z[2]]

    That's what I get for answering from my iPhone...

    Final expression looks like this;

    x = wiggle(1,1000);

    y = wiggle(.1,1000);

    z =wiggle(100,2);

    [x[0], y[1], z[2]]