So I’m playing around with zscript a bit more(still new in coding in general). Right now I want to set the visibility value of a subtool to a variable. Based on what i got from a macro, it seems like the visibility of a subtool is toggled through the values 9 and 25? So here is my first failed attempt at setting the visibility value of a subtool to the “SubtoolValue” variable:
[VarDef,SubtoolValue, 0]
[VarDef,SubtoolNames, "PM3D_Sphere3D_12"]
[VarSet, SubtoolValue, [IModGet,Tool:SubTool:SubtoolNames]]
[note, SubtoolValue,,3]
this obviously doesn’t work. Zbrush is telling me that the “interface value” for “SubtoolsNames” in line 3 was not found. Any ideas how to fix this? thx