ZBrushCentral

Script for running in more than one project per time

Hi,

I have 40 similar projects and use sript for exporting textures. Is it possible run this script for all projects per one click?

Thanks.

Hi Nick,

Only if you have the source code for the texture exporting ZScript or know how to write a ZScript with the same functionality.

With your script you can manipulate any ZBrush interface item except an interface item that belongs to another ZScript. When you press the button belonging to another ZScript, your script ends because only one ZScript can run at any given time.

If you wrote both the texture exporting ZScript and the ZScript that loads ZProjects you can use memory blocks to communicate and thus switch control back and forth between your ZScripts.

Hope that helps. Btw, what was the texture exporting ZScript?

Thanks for reply
I simply record macros when run plugin Multi Map Exporter. Then replace code from macros to script:

[IButton,"MyExportScript","MyExportScript", //.... // Code from macros // ... ]//end of button

Unfortunately that will not work across multiple files. The Multi Map Exporter is a zscript and as soon you press one of it’s buttons your script will stop running. There is no way around this, except adding all the functionality of Multi Map Exporter into your own ZScript. Sorry.

May or may not help you.
http://www.zbrushcentral.com/showthread.php?178861-Question-Can-I-launch-ZBrush-and-have-it-run-a-script-on-startup-from-a-C-app&p=1028231&viewfull=1#post1028231

I see now that plugin from macros can export each map only in separate files. But I suppose write script (and add here link to it) on Python for merging all *.tif in some folder.

Run script on startup can solve this task.

Thanks for information.

For merging exported maps I use Python script (it requires Image library):

https://gist.github.com/NickShargan/e47d7dc3258bc31dbdc5
or another link(not requires be logged in GitHub):
http://pastie.org/10495321#3

It isn`t very clean, but can be adopted if somebody will have the same problem.

Also It was problem with saving windows when close project which is solved in this thread
http://www.zbrushcentral.com/showthread.php?196789-Question-How-disable-save-window-when-close-project