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

check group layer

Engaged ,
Jul 02, 2019 Jul 02, 2019

Copy link to clipboard

Copied

Hello everyone!

If within a group layer there are only 6 layers, then do something.

Capturar.JPG

How can I do this script check? Thank you.

TOPICS
Actions and scripting

Views

644

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

Guide , Jul 02, 2019 Jul 02, 2019

if(activeDocument.activeLayer.layers.length==6){

    alert("This layerset has 6 layers");

    }else{

        alert("This layerset has not got 6 layers");

        }

Votes

Translate

Translate
Adobe
Guide ,
Jul 02, 2019 Jul 02, 2019

Copy link to clipboard

Copied

if(activeDocument.activeLayer.layers.length==6){

    alert("This layerset has 6 layers");

    }else{

        alert("This layerset has not got 6 layers");

        }

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
Engaged ,
Jul 02, 2019 Jul 02, 2019

Copy link to clipboard

Copied

LATEST

Perfect! Thank you SuperMerlin

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