Count layers within precomposed layer
Hello dear scripters.
I'm trying to count the layers within a precomposed layer.
has somebody a solution for my problem?
Thnx a lot.
:F
This is my code:
var curComp = app.project.activeItem; // this is my acive comp
var theSelection = curComp.selectedLayers; // i selected some comps
var compLayer = theSelection[0]; // compLayer is also a comp
// and here is my problem
// this doesn't return the number of layers within my compLayer
var theNumber = parseInt(compLayer.numLayers);
alert(theNumber); // returns undefined but i need an integer