Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions wiggle Y axis within a clamped value

  • wiggle Y axis within a clamped value

    Posted by Craig Whitaker on January 7, 2011 at 3:14 pm

    Hello everyone,

    I have a 2D layer located at (200,400) that I would like to wiggle between it’s starting value and (200,100)

    I’ve been playing around for a day and am unable to fix the error that I’m getting from the following expression…

    I’m guessing that there needs to be a clamp function in there somewhere, just not sure what the syntax is and where it needs to be placed.

    Thank you,
    Craig

    wig=wiggle(10,300);
    [value[0],wig[1]]

    Dan Ebberts replied 15 years, 7 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    January 7, 2011 at 7:24 pm

    How about this:

    [value[0],wiggle(10,150)[1] – 150]

    Dan

  • Craig Whitaker

    January 9, 2011 at 4:37 pm

    Hey Dan,

    Thanks so much, I appreciate it.

    If I understand this correctly, wiggle (10,150) could potentially wiggle between [200,550] and [200,250] because the starting value was [200,400]. By then subtracting 150 at the end, you’re forcing the upper limit to 400 and the lower to 100?

    Thanks again Dan.

    Best,
    Craig

    Craig Whitaker
    MFA Candidate
    New York University
    http://www.craigwhitaker.net

  • Dan Ebberts

    January 9, 2011 at 6:13 pm

    Yes, that’s correct.

    Dan

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