Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Try Catch Statement - After Effects Expression by Animoplex
// Try Catch - Created by Animoplex: www.animoplex.com
// Checks to see if a property, effect, layer, comp, or object exists.
// Note: Works like if/then statement, except if the try fails, it does not break the expression.
// Full Tutorial: https://www.youtube.com/watch?v=SG3NyHmfc0s&t=475s
try {
thisComp.layer(index + 1).value;
} catch(err) {
1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment