Skip to main content
Participant
July 22, 2011
Answered

How can I tell if a layer is a light?

  • July 22, 2011
  • 1 reply
  • 522 views

Is there any sort of layerType property? I can't seem to find anything like that. Basically I want to make a very simple script that goes through the current comp and shuts off any layers that are lights. I can't seem to figure out how to tell if a layer is a light or not though.

This topic has been closed for replies.
Correct answer Paul Tuersley

You can do something like: if (theLayer instanceof LightLayer)

1 reply

Paul TuersleyCorrect answer
Inspiring
July 22, 2011

You can do something like: if (theLayer instanceof LightLayer)