-
Count layers in a composition with a certain name
Hey,
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:
Layer_01
Layer_02
Layer_03
Image_01
Layer_04
Image_02It 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