Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Reverse a expression

  • Reverse a expression

    Posted by Gijs Ten den on January 11, 2017 at 10:03 am

    Hello,

    Quick question, I am trying to reverse a expression in After Effects but after searching for like an hour I still don’t have anny clue.
    The expresion that I am trying to reverse is: ” thisComp.layer(“Joep”).content(“Trim Paths 1”).end “.

    The expression links to a trimpath of a round shape layer, and i am trying to link it to a radial whipe effect but I need to reverse the value.
    Because the trimp path goes from 0 to 100 and the radial whipe from 100 to 0.

    Help is welcome ????

    thisComp.layer("Joep").content("Trim Paths 1").end

    Gijs Ten den replied 9 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • James Ronan

    January 11, 2017 at 1:03 pm

    There is probably a better way but I’d do it like this:

    x = thisComp.layer("Joep").content("Trim Paths 1").end;
    linear(x,100,0,100,0);

  • Gijs Ten den

    January 11, 2017 at 1:10 pm

    Better way or not it works????

    Thank you for your help!

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