ZBrushCentral

Problem: Unable to use Scale Master with my own zscript

I’ve tried to change all subtools’ scale by zscript, it seems that buttons in scale master are working, but the slider and switch aren’t. Can anyone help?

[VarDef, scaleMasterCM, “Zplugin:Scale Master:cm”]
[VarDef, scaleMasterY, “Zplugin:Scale Master:Y”]
[VarDef, scaleMasterResize, “Zplugin:Scale Master:Resize Subtool”]

[IButton, Set190CM, ,
[IClick, scaleMasterCM]
[IUnPress, Zplugin:Scale Master:mm]
[ISet, scaleMasterY, 190]
[IPress, scaleMasterResize]
]

Zscript is limited. You can only run one at a time. So as soon as you activate a switch or button. Your scripts stops. And the one of scale master takes over. It works with buttons because it presses and executes. But if you for example try to note something after clicking the button. It won’t work either

I do believe there is a hacky work around. Try googling for zscript decimation batch script. You can use that as an example code. On how far you can push your plugin to interact with other plugins