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

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

Explorer ,
Jan 19, 2025 Jan 19, 2025

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.pngexpand image

 

Screenshot 2025-01-19 at 4.24.57 AM.pngexpand image

 

TOPICS
How-to , Scripting
147
Translate
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.

Translate
Adobe
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.

Translate
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
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.

Translate
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