-
scripting question: how to test layers for their types
Hello,
I’m writing a script to go through a ton of layers, I want to add expressions to different types of layers. The first part of the script goes to layer ‘i’ and tests to see if it is light layer. I want to write something like this:
var activeLayer = selectedComp.layer(i);
if(activeLayer instanceof LightItem;
do somethingHowever, I get the error “LightItem is undefined”
What are the different types of layers that can be found in a composition, and how can they be tested to see if they are one layer type or another?
Take care,
Nick