ZBrushCentral

Can A macro be set to run on start up just like it was done in 4r8

Hi I followed Marcus’s instructions (first sticky in this forum section) to run a macro on start up for 4r8 and it has worked fine.
I am wondering if I can use the exact same default script that was used for 4r8 in zb2018?

Here is the substitute default script by Marcus to run a macro on start up(thanks again for all your help!):

//startup

[If,1,[IPress,Macro:Macros:Misc:StartupMacro]][pd]

And here is my start up macro:

//ZBRUSH MACRO - Recorded in ZBrush version 4.8
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.8]
[IUnPress,Menus]
[IUnPress,Transform:Local Transform]
[IUnPress,Draw:Perspective]
[ISet,Stroke:LazySnap,0]
]

Thanks

Hi Susan,

That will work OK but you will not see the Home Page when ZBrush starts. If you want to see the Home Page you’ll need to just edit the DefaultZScript.txt file and not bother with a macro at all. You need to copy the relevant code from the macro to the start of the DefaultZScript, enclosing it inside [If,1, … ] so that the code runs. (In the code below I’ve removed a couple of things that aren’t necessary.)

//startup

[If,1,
[IUnPress,Menus]
[IUnPress,Transform:Local Transform]
[IUnPress,Draw:Perspective]
[ISet,Stroke:LazySnap,0]
]
[If,[MemGetSize,startup_mem],
[IPress,“Zplugin:Misc Utilities:Home Page”]
,
[IPress,“Zplugin:Misc Utilities:Home Page”]
[MVarDef,startup_mem,1,0]
]

[PD]

HTH,

Thank you, Marcus