July 06th 2012 08:00:48am
In this episode:
Welcome to episode 14 of the After Effects ExtendScript Training series. This week we are gonna focus on how to process text strings.
In previous episodes we have been retrieving various information from our project, anything from file paths to layer names and even property values. Now sometimes you may want to extract or alter that information for various reasons. Something like grabbing only a file extension from it’s name, separating long text strings into individual words, replacing a specific term or letter, capitalizing all characters, etc…
We’ve already learned and used the replace method a number of times, so I wanted to show you a few more common methods that you’ll likely use a lot. This is also not a full list of all available options, so definitely check out some Javascript resources like W3Schools online to find more.