Try Catch Statement - After Effects Expression by Animoplex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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