Copy link to clipboard
Copied
I want to have a random movement on a layer using the a wiggle expression but I only want it on one axis.
Using this:
wiggle(1,50)
makes it pop around on the screen, so what do I need to add to this to get it to work up and down only?
Also, is there a 'library' of sorts that anyone can point me at that has some useful expression examples to get me started.
I realise thats a little like 'how long is a piece of string' but its worth asking!
Thanks
Copy link to clipboard
Copied
Here's a search that pulls up the answer to your question about wiggling on one axis.
> Also, is there a 'library' of sorts that anyone can point me at that has some useful expression examples to get me started.
Yes. It's the After Effects Help document.
Copy link to clipboard
Copied
Thanks for your reply Todd
I'll take a look
Copy link to clipboard
Copied
Position is an array. It's defined in square brackets. To make the wiggle expression work only in x write it this way:
x = wiggle(5,50)[0];
y = value[1];
z = value[2];
[x, y, z]
This will allow you to add position keyframes to the layer.
Copy link to clipboard
Copied
Thanks for replying Rick, very useful.
I notice that there a few ways to achieve a similar effect now
Copy link to clipboard
Copied
A great library can be found at http://www.motion-graphics-exchange.com/
Copy link to clipboard
Copied
Thanks for that...
Found loads of other goodies there too..
Find more inspiration, events, and resources on the new Adobe Community
Explore Now