I have a Photoshop layer/smart object named "Culoare". When I double click on it, there is another list of layers/smart objects. I need to be able to make visible/invisible the layers inside the first layer. For example, make "warm white" invisible and "blue" visible.
My code so far:
var doc = app.activeDocument;
var culoare = doc.layers[5];
doc.activeLayer = culoare;
culoare.visible = false;
2
Answers
I don’t know much about photoshop script. But based on your code, it seems that the order of your last two lines should be:
That is ‘culoare’ should not be visible before you assign it to the active layer. I dont understand why you would want it to be invisible if you are assigning it to the active layer though.
You’re nearly there! You don’t need to reference the culoare my the layer number as that may change. You can however, use the current active layer instead: