Minimize or Expand Layerset in Extendscript

I created extendscript that automatically creates layers for texture assets for the game.

After creating a layer set, the set expands by default. I want the layer set to be collapsed as shown in the image below. I leave only the Diffuse layer for expansion. The rest is closed. I was looking for an Adobe link on how to do this, but didn't find anything. How to collapse a set of layers?

Layer sets as it should be: only Diffuse should be extended

+5
source share
1 answer

It is not possible to do this with scripts (I have studied this before). There simply is no collaps (or equivalent) layerSets property to set!

However, what you can do is press CTRL (or a command on Mac) and click the small arrow next to the group (in the layers window), which will crash all the groups for you.

There is a solution to work with : but you have to look for it

0
source

All Articles