Search code examples
javascriptphotoshopextendscriptphotoshop-scriptadobe-extension

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


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