Subscribe to:
Post Comments (Atom)
Welcome to "AE I Owe You", a spot for tutorials and helpful tips relating to Visual Effects and Motion Graphics. While the majority of posts will relate to AE (After Effects), this blog will also showcase other software as well. At least the ones I know how to use. ;) If you find something useful here, feel free to say so in the comment sections. Enjoy.
4 comments:
The AE CC 2014 Menu Command ID's pdf has been posted here as well recently.
tnx for share : D
Thanks. Can you please share a function() or idea ..to get all nested Comps into a single array from current active comp.??Am banging my head on wall to find atleast one property where its linked to Nested comp and Main comp in Project window.I saw "Reveal in Composition" is Linked to Parent Comp but no property in extended script guide.
AFX COMP
---------
MainComp(Precomp(Precomp(Precomp(Precomp))))
Script
--------
var myComp=app.project.activeItem;
var myLayers=myComp.layers;
var allComps= new Array();
for(i=1;i<myComp.numLayers;i++){
curLayer=myLayers[i];
if(curLayer.source instanceof CompItem==true){
allComps = function getAllNestedComps(??);
}
A comp item has an attribute called "usedIn" that returns an array of comp items. So you can loop through your project, check for comp items and then check if each comp item is usedIn another comp(s).
Post a Comment