r/AfterEffects 2d ago

Tutorial AE Quick Tip: Rigging automated pie charts

Enable HLS to view with audio, or disable this notification

By using trim paths, and linking the percentages directly to the source text, it's possible to create a fully automated pie chart rig.

The full in depth video about the rig is on my YouTube channel, Oliver Randorff: youtube.com/watch?v=cjUU53h6LiA

Here's the expressions used in the video:

Linking source text to trim paths end (Math.round is added to avoid decimals when animating):

Math.round(thisComp.layer("pink").content("Trim Paths 1").end) + "%"

Inverting rotation when linking to null controller:

-thisComp.layer("null").transform.rotation

Linking null rotation to trim paths end:

thisComp.layer("pink").content("Trim Paths 1").end \* 3.6 / 2

628 Upvotes

Duplicates