Search found 4 matches

by anduvo
Wed Oct 13, 2021 2:18 pm
Forum: Help Me
Topic: Do you know how to query the "real" visibility of a layer using AM ?
Replies: 7
Views: 2787

Re: Do you know how to query the "real" visibility of a layer using AM ?

yes, as I mentioned in the original post, I am doing that already, I am checking the visibility of the parent(s) of each layer and that is adding too much time to the script when dealing with big files. So I thought there was maybe a more direct way to know the layer visibility without the need to c...
by anduvo
Wed Oct 13, 2021 1:35 pm
Forum: Help Me
Topic: Do you know how to query the "real" visibility of a layer using AM ?
Replies: 7
Views: 2787

Re: Do you know how to query the "real" visibility of a layer using AM ?

Actually it has nothing to do with having a background layer or not if you don't believe me please try it yourself: 1) create a layerSet 2) create a layer inside that layerSet 3) hide the layerSet 4) select the layer and query visibility using the DOM = you will get false (which is expected) 5) quer...
by anduvo
Wed Oct 13, 2021 12:37 pm
Forum: Help Me
Topic: Do you know how to query the "real" visibility of a layer using AM ?
Replies: 7
Views: 2787

Re: Do you know how to query the "real" visibility of a layer using AM ?

Hi Kukurykus, Using the index was just for the example; although when using it I do take into account the presence or not of a background. It happens the same if I use the ID instead: ref = new ActionReference(); ref.putIdentifier(charIDToTypeID('Lyr '), ID); var desc = executeActionGet(ref); var la...
by anduvo
Wed Oct 13, 2021 9:50 am
Forum: Help Me
Topic: Do you know how to query the "real" visibility of a layer using AM ?
Replies: 7
Views: 2787

Do you know how to query the "real" visibility of a layer using AM ?

Hi Everyone, I've run into this unexpected behavior when you ask the visibility of a layer via AM: Suppose you have a layerset and inside that layerset a layer, both visible. If you hide the layerset, then the layer also becomes invisible, which is normal, and it's eye icon turns grey. If you query ...