Last active
November 23, 2023 15:39
-
-
Save dokluch/1ca33a65dc67d4a3047f to your computer and use it in GitHub Desktop.
Finds a composition by a given name in Adobe After Effects
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
findCompByName=function(_name){ | |
for(var i=1;i<=app.project.numItems;i++) | |
{ | |
var curItem=app.project.item(i); | |
if (curItem.name==_name && curItem instanceof CompItem) return curItem; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment