Copy link to clipboard
Copied
There is a piece of code that selects a layer:
.....
r.putName( s2t( "layer" ), "My layer" );
d.putReference( c2t( "null" ),r );
d.putBoolean( s2t("makeVisible" ), false );
.....
Why does d.putBoolean( s2t("makeVisible" ), false ); not hide the layer.
If I write:
d.putBoolean( s2t("makeVisible" ), true );
The layer from invisible becomes visible.
If I write:
d.putBoolean( s2t("makeVisible" ), false );
The layer is not hidden?
Could this be a feature of my version of Photoshop, or am I misunderstanding something?
Copy link to clipboard
Copied
Edit: It is called »makeVisible«, so if the Layer is already visible it would seem reasonable to have no effect either way.
Selecting a Layer is simply not intended to hide it, to hide a Layer one need not select it.
Copy link to clipboard
Copied
Thank you. I thought if you can apply the true, then it makes sense that you can try on a false.
Copy link to clipboard
Copied
But that only makes a difference if the Layer is currently hidden.
If you want to hide a Layer there is no need to select it.
What is the workflow in which this needs to be included?
Copy link to clipboard
Copied