Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects absolute value

  • absolute value

    Posted by Phil on December 27, 2005 at 5:29 pm

    i need to take the absolute value from the rotation of the null layer =

    this is the expression for the layer:

    temp = thisComp.layer(“Null 1”).rotation;
    [0, 0, temp]

    i need the temp to equal the absolute value of the rotation i.e.:
    Null Rotation=-46
    so i need the temp = |-46|

    Phil replied 20 years, 4 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    December 27, 2005 at 5:50 pm

    This should work:

    temp = Math.abs(thisComp.layer(“Null 1”).rotation);
    [0, 0, temp]

    Dan

  • Steve Roberts

    December 27, 2005 at 5:53 pm

    It’s under “javascript math” in the drop-down: Math.abs(value), or Math.abs(temp) in your case.

    Steve

  • Phil

    December 27, 2005 at 6:44 pm

    thanks guys….i figured out right after i posted….i realized that the thiscomp.layer(“null 1”).rotation was an actual value :).

    math is cool (shift+1)

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