Reversing Things in After Effects With an Expression

Joe Clay Shows How You Can Use a Small Expression for Reversing the Direction of Trim Paths

“This is especially perfect for Presets.” Workbench’s Joe Clay says about his latest tutorial. If you work with trim paths, you know that reversing the direction of them can be tedious, especially if you have a few to change. Instead of altering the keyframes you can use one quick maths equation that can quickly work on both front and back directions.

The expression is pretty small: rev = effect(“Reverse”)(“Checkbox”);
Math.abs(value-rev)*maximumValue;

“You can apply this to pretty much any parameter you’d like if you need to reverse the way things are moving,” Clay says. ” I would highly recommend you animate from 0-1 and multiply that value by the maximum value of the range”. Visit WorkBench.tv to learn more tips and tricks on working with this reversing expression in After Effects.