AdobeDocs / photoshop-api-docs

Adobe Photoshop API
https://adobedocs.github.io/photoshop-api-docs/
MIT License
104 stars 20 forks source link

How to hide a layer? #81

Closed kratosvn closed 2 years ago

kratosvn commented 2 years ago

Expected Behaviour

Actual Behaviour

kratosvn commented 2 years ago

@johnleetran can you help me check this issue? thank you

johnleetran commented 2 years ago

Hello @kratosvn,

In order to hide a layer, you can use the visible field within the options.layers[] data structure. For example,

{
    "inputs": [...],
    "options": {
        "layers" : [
            {
                "name": "YOUR_LAYER_NAME",  
                "visible": false
            }
        ]
    },
    "outputs": [...]
}
johnleetran commented 2 years ago

Closing, further help can be found by emailing psdservices@adobe.com