Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Limit wiggle on offset property for Trim Paths

  • Limit wiggle on offset property for Trim Paths

    Posted by Jesus Suarez on June 18, 2015 at 7:47 pm

    I have a shape layer with a simple line and trim paths applied to it. The end of the trim paths is set to 0.2% which gives me pretty much a dot. Now, If I apply a wiggle expression to the offset of the trim paths the dot will of course wiggle along this “invisible” line, but I want to limit the movement between 12% and 300% of the Offset property so that the dot doesn’t disappear at the bottom and appear on top for example. How can I do this?

    I know I could easily do this with a normal layer with a mask and a Clamp applied to the wiggle for the position property, but doing this in a shape layer allows me to duplicate the shape a bunch of times within the same layer, instead of having multiple layers. Plus I can change the shape of the path and have the dot still wiggle along this path.

    Here’s a screenshot of the property

    Peter Diefenthaler replied 10 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Peter Diefenthaler

    June 27, 2015 at 3:23 am

    I’m not sure I completely understand what your goal is. Could this be what you’re looking for?

    freq=0.6;
    min=12;
    max=300;

    Math.abs(wiggle(freq,max-min))+min

    Peter Diefenthaler
    https://www.ideafirecreative.com/

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