ZBrushCentral

GoZ reset your scripts? Bypass for it?

It looks like going to GoZ and back resets your scripts. I have a flag set up that gets reset to its default value which isnt ideal but its not ruining anything. Is there a bypass for this?

If you are using variables in a script (VarDef, VarSet) then these are reset to their default values any time the script is reloaded. Using any other plugin/macro/script will mean your script gets reloaded, not just GoZ.

So if you want to have settings persist throughout a ZBrush session, either you need to using VarSave and VarLoad to save those setting to disk, and reload when you script starts, or you need to use memory blocks which are only destroyed when you close ZBrush. The easiest way to use memory blocks (for numbers) is to use MVarDef, MVarSet & MVarGet - not much more difficult than using VarDef.

http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/command-reference/#MVarGet

Ill use the memory variables thanks Marcus.