Skip to main content
Known Participant
January 19, 2025
Answered

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

  • January 19, 2025
  • 1 reply
  • 257 views

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.

 

 

 

Correct answer Sergey Osokin

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.

1 reply

Sergey Osokin
Sergey OsokinCorrect answer
Inspiring
January 20, 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.

nutradialAuthor
Known Participant
January 20, 2025

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.