Joe Clay | Aug 27, 2020
This is a quick After Effects tutorial for you. I wanted to play around with the new After Effects text expression access and I thought it might be interesting to be able to finally animate font weight with it—rather than having to animate
sourceText keyframes. It's like having a value brand variable-width font!
Hopefully this expression access is opened up more in the future. It'd be nice to be able to combine styles in the same text layer. But for now I don't see a way to do that, unless I'm missing something. This seems to be here mainly to help build mogrts for Premiere, which is sad as it's been something a lot of us have wanted in AE for a long time.
Anyway, if you use this technique on anything, hit us up @workbench_tv!
This expression was built with Texta in mind. You'll probably need to modify the
weights array to work with your font. You could even get crazy by skipping around through weights and styles. Or if you feel industrious, you could add a second slider to switch through fonts with similar weights.
weights = [ 'Thin', 'Light', 'Book', 'Regular', 'Medium', 'Bold', 'Heavy', 'Black' ]; family = thisProperty.style.font; family = family.split('-'); select = Math.floor(clamp(effect("Select")("Slider"), 0, weights.length - 1));; createStyle().setFont(family + '-' + weights[select]);
Become a Patron
If you'd like to help support Workbench, check out our Patreon page. Thank you for even considering clicking this link to support what we're doing. We appreciate it. Patrons get all sorts of benefits, from R&D files, setups, and elements to early product releases.
Grab the Project Files
Get the project file through our Gumroad Store. This project file contains the After Effects file shown in the tutorial as well as the textures used. There is no legacy version, however, as this was made with the first version of AE to support this type of expression.
If you're buying project files, consider becoming a Patron. At the $5/mo. tier, you get access to project files as they come out and some tutorials also come with additional BTS content showing more of the builds.Get the project on Gumroad