ZBrushCentral

ZB4R4 : macro in default zscript gets executed twice ?

It’s not that big of a problem but it doesn’t seem right.
Anyone else experiencing this ?

What OS are you on? Also, if you post the macro and the code you added to your defaultzscript we might be able to see what’s going wrong.

Hi Marcus,
seeing I had this problem I created a test macro to recreate it:

DefaultZScript:

//startup
[If,1,
    [IPress,Macro:Macros:Misc:startup]
]
[pd]

macro:

[IButton,???,"Press to run this macro. Macros can be aborted by pressing the ëescí key.",
[IShowActions,0]
[Note,"Blah Blah Blah",,.5] 
]

Basically the text flashes twice when Zbrush starts…
I’m on windows7 x64 by the way

Ah, ok. Not sure why that happens.

If this is causing a problem for you then you could use a simple memory test in the startup macro:


[If,[MemGetSize,StartupMem],
  // memory block exists, do nothing
,//else
  [Note, "Hello World",,.5]// the stuff you want to do
  [MVarDef,StartupMem,1]//create memblock
]

Hi Marcus,
your knowledge of zscript is very impressive so thanks again, It works great.
I’m not sure why it’s doing it either and if it’s happening only on my system then that’s very strange.
anyway, moving on…