so I know of the expression; thisComp.numLayers
The problem with it is that it counts every layer. I want a sort of filter, that will only count the layers starting with a certain name. So:
It only counts the two layers that start with "Image".
I'm not sure if it's even possible - just wanted to know before I ruled it out as an option
I don't know if this is the most efficient method, but it works. layerNumber = 0;//start the counting of layers at 0
layerStartWith = "Image";//the word with which the layers should start
if (thisComp.layer(i).name.slice(0,layerStartWith.length) == layerStartWith) layerNumber =layerNumber +1;