Skip to content

Instantly share code, notes, and snippets.

@dokluch
Last active November 23, 2023 15:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dokluch/1ca33a65dc67d4a3047f to your computer and use it in GitHub Desktop.
Finds a composition by a given name in Adobe After Effects
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