I don’t think there is any way that you can hide the layer name. There is definitely no layer.name.visible method.
I guess you could rename the layer with an empty string, I’ve never tried so I don’t know if PS accepts a layer with no name.
Thanks for your reply, Timothy.
Yesterday I wanted to hide the layer inside a group, but in my case today I wanted to hide the layer outside the group, it was in the work file as a whole.
As my friend, I’m basically not a programmer, it’s just a hobby I have , I’m trying to develop it, and I know this only comes over time, learning and delving into the programming sea.I respect your work as a programmer, but I’m a hobby, I have my own plugin, which is in CEP format, and now I’m converting to uxp format.
I work my main job as a chartered accountant at Ford Motor Company, and I have two master’s degrees in accounting (Cost Accounting + Management Accounting).