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++; }
Detect if layer is a text layer
Moderator: Paul Tuersley
-
- Posts: 320
- Joined: June 26th, 2004, 10:01 am
- Location: Folsom, CA
- Contact:
This should work too:
if (myComp.layers[y] instanceof TextLayer)
Dan
if (myComp.layers[y] instanceof TextLayer)
Dan