Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to set a wiggle range between two values in Trim Path?

  • How to set a wiggle range between two values in Trim Path?

    Posted by Samith Ahmedh on December 22, 2020 at 5:26 pm

    How do I create a wiggle expression between two values in a line layer. Like between the values 80 to 100 without allowing the wiggle expression to overlap 100 which makes the link stuck.

     

    Samith Ahmedh replied 5 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Othman Ahmed

    December 22, 2020 at 6:51 pm

    I think this is what do you want.

    Code :

    aMin = 80; // Use any number you want here as the minimum value

    aMax = 100; // Use any number you want here as the maximum value

    wigFreq = 25;

    wigAmpl = 250;

    w = wiggle(wigFreq,wigAmpl);

    clampIt = clamp(w,aMin,aMax)

  • Samith Ahmedh

    December 22, 2020 at 7:06 pm

    The code works fine in sticking between the values, especially above 80 but still is stuck at 100 occasionally like the normal wiggle expression. I reduced the frequency and amplitude to see if that was the issue but it wasn’t. Appreciate your response and time.

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