5 Replies Latest reply on Nov 9, 2011 9:01 PM by Rick Gerard

# How to wiggle XYZ dimensions separately for Anchor Point

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!

• ###### 1. Re: How to wiggle XYZ dimensions separately for Anchor Point

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

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.

• ###### 2. Re: How to wiggle XYZ dimensions separately for Anchor Point

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!

• ###### 3. Re: How to wiggle XYZ dimensions separately for Anchor Point

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.

• ###### 4. Re: How to wiggle XYZ dimensions separately for Anchor Point

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.

• ###### 5. Re: How to wiggle XYZ dimensions separately for Anchor Point

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]]
```