ZBrushCentral

load a file?

hey guys, - sorry for my english I’m italian.

I’d like to know if it is possible to automatically load an UI file (preferences->config->load ui) at startup? I read about macro but it only opens up the file launcher but doesn’t select the file…

//ZBRUSH MACRO - Recorded in ZBrush version 4.31
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.31]
[IPress,Preferences:Config:Load Ui] // and nothing more…
]

I would like zbrush to open the exact same UI file (at the exact same location) everytime it starts. I know about the “store ui” button but i want to do it with a macro/script/.

does anybody know how i could do it? I’m running on zbrush 4r3 by the way.

thank you very much!!

Is there a reason you haven’t upgraded to 4R5, OS related maybe?

no this is the version my school is using and to avoid compatibility issue i am working on 4r3 at home as well.
Is my problem solvable with 4r5 but not 4r3? oO

Once you save your config(UI), it should open that way. Menus are context sensitive so you might not see all you want. If you open a .zpr file you have been working on, does it not open as you expect?

i already know that and I want to do it with a script or a macro, it’s for a personnal project. if it would have been for the ui only of course i would have already done it that way. :wink:

You can use the [FileNameSetNext] command to specify the file before the macro presses the ‘Load Ui’ button:


[FileNameSetNext,"MyConfig.cfg"]
[IPress,Preferences:Config:Load Ui] 

In my code snippet the config file must be in the same folder as the macro, so if you save your macro to the ZBrush /ZStartup/Macros/Misc/ folder then the MyConfig.cfg must be in there too, otherwise the macro won’t be able to find it.

this is exactly what i was looking for.

thanks a lot marcus!

No this is the version my school is using and to avoid compatibility issue.