How to close a layer folder on Photoshop using CEP/ExtendScript/JavaScript?

Issue

I’m developing an extension in Photoshop and I need to close a layers folder (containing a lot of information) to make the layers view cleaner.
I haven’t found anything in the Photoshop documentation and nothing on the forums.

From :

enter image description here

To :

enter image description here

Thanks in advance for your help !

Solution

Thank you Ghoul Fool for finding this thread :

https://community.adobe.com/t5/photoshop-ecosystem-discussions/expand-collapse-a-group-via-javascript/td-p/7286289

Answered By – Fitspade

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published