Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects expression with absolute values

  • expression with absolute values

    Posted by Vicn on October 18, 2005 at 1:19 pm

    This should be easy…

    I have wiggle expression set to control a lens effect’s convergence parameter, looks fine except when the wiggle results in a ngeatvie value the convergence goes the wrong way. So i thought i could write an extra line that either makes the result paramater “greater than zero” or make it an absolute value. Anyone got that commnad line ready?

    Victor

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

    October 18, 2005 at 1:25 pm

    You have a couple of choices. The easiest would be to just enclose your result in Math.abs() to get the absolute value.

    Another way would be to see how far negative your wiggle expression goes and add a positive offset of the same magnitude to your result.

    Dan

  • Vicn

    October 18, 2005 at 2:52 pm

    I tried the abs command by pickwhipping it to the resulting effect parameter, but that only resulted in the end parameter becoming zero at all times?!?

  • Dan Ebberts

    October 18, 2005 at 3:05 pm

    I’m not sure what you’re doing with the pickwhip, but based on the info you’ve provided, it seems like your resulting expression should look something like this:

    Math.abs(wiggle(3,50))

    Dan

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