Skip to content

Instantly share code, notes, and snippets.

@animoplex
Last active June 29, 2020 17:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save animoplex/fd52e068f64f8dbe603db9cab6c9430f to your computer and use it in GitHub Desktop.
Save animoplex/fd52e068f64f8dbe603db9cab6c9430f to your computer and use it in GitHub Desktop.
After Effects String Methods - After Effects Expression by Animoplex
// After Effects String Methods - Created by Animoplex: www.animoplex.com
// List of compatible string methods in After Effects expressions and what they do.
// Full Tutorial: https://www.youtube.com/watch?v=l7Xd8mkqWfc&t=268s
// Outputs 2 characters, starting after the first character.
myString.substr(1, 2)
// Outputs everything after the first character, through the second character.
myString.substring()
// Converts the string to all uppercase letters.
myString.toUpperCase()
// Converts the string to all lowercase letters.
myString.toLowerCase()
// Returns the last character of a string.
myString.slice(-1)
// Returns a string as an array with items split at the specified character.
myString.split("-")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment