Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions quick expression needed

  • quick expression needed

    Posted by Matt Stalker on April 14, 2005 at 6:51 pm

    Hi…

    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

    Mike Clasby replied 18 years, 5 months ago 3 Members · 2 Replies
  • 2 Replies
  • Steve Roberts

    April 14, 2005 at 7:49 pm

    Here’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 pm

    An advanced search of “one axis only” lead to this:

    https://www.creativecow.net/forum/read_post.php?postid=111201362244203&forumid=2&highlight=wiggle%2Cone%2Caxis

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

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