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

How to add layers and sublayers via script without expanding the tree of the parent layer

Explorer ,
Jan 19, 2025 Jan 19, 2025

Copy link to clipboard

Copied

I have a script that adds a new parent layer and organises pageItems in sublayers. I wish for the view of the new layers to be collapsed rather than expanded and only show the parent layer. Thanks.

 

Screenshot 2025-01-19 at 4.24.32 AM.png

 

Screenshot 2025-01-19 at 4.24.57 AM.png

 

TOPICS
How-to , Scripting

Views

64

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 , Jan 19, 2025 Jan 19, 2025

If we create sublayers manually, they are not collapsed either. And this cannot be adjusted by any option. Therefore, scripts don't have access to collapse the layer tree either.

Votes

Translate

Translate
Adobe
Enthusiast ,
Jan 19, 2025 Jan 19, 2025

Copy link to clipboard

Copied

If we create sublayers manually, they are not collapsed either. And this cannot be adjusted by any option. Therefore, scripts don't have access to collapse the layer tree either.

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
Explorer ,
Jan 19, 2025 Jan 19, 2025

Copy link to clipboard

Copied

LATEST

I figured as much .. thanks for the confirmation.

 

As a workaround I will figure out a way to create groups of the pathItems using RegExp search pattern matches instead of placing them inside sublayers.

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