• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can I tell if a layer is a light?

Explorer ,
Jul 22, 2011 Jul 22, 2011

Copy link to clipboard

Copied

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.

TOPICS
Scripting

Views

422

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jul 22, 2011 Jul 22, 2011

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

Votes

Translate

Translate
Enthusiast ,
Jul 22, 2011 Jul 22, 2011

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines