ZBrushCentral

Assign hotkey to zscript button and you can only use it once

I am running ZBrush 4.0 on a Mac. A basic standard installation I would think with no extra plugins downloaded.

I have noticed that if I create a Zscript that defines a button and then I proceed to give that button a hot key using the CTRL+ALT behavior I can only use that hotkey once. First time the script is executed, the second time nothing happens. I was expecting to script to run again but nothing happens.

Any ideas to why this is would be greatly appreciated.

Thanks,

mobbe

This seems to be a limitation of zscript - the button needs to be part of the interface rather than in the ZScript Window. You can solve the issue by making your zscript into a macro or plugin.

You can change the zscript into a macro by renaming the button to “???” (without quotes) and saving it to the ZStartup\Macros\Misc folder. Press the Macro>Reload All Macros button and the new macro will appear in the Misc menu, named according to the file name. Assign a hotkey using Ctrl+Alt.

That did the trick! Thanks for your help

-mobbe