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.

Some of the links on lesterbanks are "affiliate links", a link with a special tracking code. This means if you click on an affiliate link and purchase the item, we will receive an affiliate commission. The price of the item is the same whether it is an affiliate link or not. Regardless, we only recommend products or services we believe will add value to our readers. By using the affiliate links, you are helping support our Website, and we genuinely appreciate your support.