Motion Graphics Academy’s Jim DiGiovanni, demonstrates a practical application for using variables in expressions within After Effects.

using variables to calculate the changing values of baseball team salary

Jim uses expression sliders to drive the source text parameter and then writes a series of variables to take that data and apply JavaScript math to return sum, an average, and round up to whole numbers.

Jim notes that this is a great technique to use if you are creating information graphics.

Once it is set up properly, this workflow can be very handy way to affect multiple fields a data using a single control.

This tutorial is part of the “Demystifying After Effects Expressions” series, where Jim looks at the different components and functions of Ae expressions.

 

The first few tutorials centered around using the Index Layer Cascade – and overs cover using the looping Ping-Pong Effect, Variables, and Expression Sliders to control a variety of properties, including Hue, Sat, Position and color cycles.

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.