ZBrushCentral

Information from the Layer List

Hi,
what sort of Information can I get from the LayerList of a Tool ? I mean how would I evaluate if a certain Layer exists or not ?
Can I somehow output the LayerNames into a Variable and query the Variable for a string ?

[IExists,Tool:Layers:“LayerName”] doesn’t seem to work :frowning:

Ah, weird. Looks like the it gets tripped up with short LayerNames like disp. With longer Layernames it works - sorted.

Be careful with [IExists] and layers. I think you’ll find it will only return the correct value if the layer is visible in the list - in other words, if you have more than 8 layers and the layer you want is hidden, then it won’t ‘exist’.

I’ve not seen any problem with short layer names.

Ah, maybe that was the culprit then. I had a long list. I’ll just try and let the script scroll through the list and rerun the check a few times, I think I saw someone else was using this method to check with Layer was in Record mode.