Detect if layer is a text layer
Posted: August 13th, 2014, 10:55 am
Hi everyone!
I'm trying to help someone write a script in the scripts request forum that selects layers with the same source footage. The problem i'm running into is that as it loops through the layers, if it runs into "text" it finds the source as null and breaks. Is there something I can do that would work something like this fictional example?
if (myComp.layer[y].source.istext == true ) { y++; }
I'm trying to help someone write a script in the scripts request forum that selects layers with the same source footage. The problem i'm running into is that as it loops through the layers, if it runs into "text" it finds the source as null and breaks. Is there something I can do that would work something like this fictional example?
if (myComp.layer[y].source.istext == true ) { y++; }