Forums › Adobe After Effects Expressions › quick expression needed
-
quick expression needed
-
Matt Stalker
April 14, 2005 at 6:51 pmHi…
I need an expression to wiggle the y position only. I can get a general wiggle this way…
position.wiggle(5, 5, octaves = 1, amp_mult = .5, t = time)
but I can’t seem to get the right syntax to isolate one dimension only. Can you help me?
Thanks…
Matt
Matt Stalker
Center City Film & Video
mstalker@ccfv.com -
Steve Roberts
April 14, 2005 at 7:49 pmHere’s an old post, found by searching the COW under “wiggle” and “axis” — you can figure out how to apply it to a Y-axis wiggle. 🙂
To wiggle on the X axis only, enter this in the layer’s position property expression field:
foo=position.wiggle(4,100)[0];
[foo,position(1),position(2)]You set up the wiggle expression, then substitute it for the first position value in the position array. The first(0) is X, the second(1) is Y and the third(2) is Z.
You don’t have to use “foo”. It could be any word or character that doesn’t have another purpose in the expression language. You could use “blat”, “xwigg” or “zac” if you like.
For more wiggling, go to the Adobe Studio Exchange.
Hope that helps,
Steve -
Mike Clasby
April 14, 2005 at 7:55 pmAn advanced search of “one axis only” lead to this:
The above leads to a great tut, “Express Your Wiggle”.
The expression to wiggle only the y axis would look like this:
[position[0], position.wiggle(5,5)[1]]
position.wiggle(5, 5, octaves = 1, amp_mult = .5, t = time)
Or
[position[0], position.wiggle(5,5,1,.5)[1]]
Log in to reply.