Take a look at this tool to work with layers in ZBrush:
ZLayerManager (Plugin for layer edition) - ZBrushCentral
Very useful script! It works fine for me (using ZBrush 2021.7 and the script for that). I tried to call it from my script/macro
I did
[IPress,Zplugin:Layer Tools:Layers Off]
[Note, “Done”]
and turning off layers worked fine, but my script stopped there, next line ([Note, “Done”]) was not executed, any idea why?
Or to change question, how to call you function for hiding layers from my script? And do something after layers are hidden?
Dear Marcus,
I’m wondering how to get the right layer with zscript, it seems not letting me select up and down if layer is recording.
If the layer I want to GetMod isn’t shown in the UI, it will show a error message say’s the interface doesn’t exist. But when calling IExists it will return true if the layer is selected.
Marcus has retired Farewell to our friend, a ZScript Legend, Marcus Burgess! - ZBrushCentral
Don’t know if anyone else or who is picking up the scripting baton.
Good Luck.