ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Reverse a expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gijs ten DenReverse a expression
by on Jan 11, 2017 at 10:03:10 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


Return to posts index

James RonanRe: Reverse a expression
by on Jan 11, 2017 at 1:03:20 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);


Return to posts index

Gijs ten DenRe: Reverse a expression
by on Jan 11, 2017 at 1:10:45 pm

Better way or not it works๐Ÿ˜ƒ

Thank you for your help!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]