ZBrushCentral

Batch Script Creator

Hi all,
i have developed a small program to create batch script.
I explain the program with an example:
suppose you have N 3D objects in .OBJ format and want convert it in ZTL format.
Manually you must:

  1. Import the OBJ
  2. Smooth (if you want…)
  3. Save as ZTL
    Repeat these three step N times !!!

With this program you must:

  1. Select the files from “Files” tab.
  2. Write the zscript statements (see figure)
  3. save and run the script (within Z)

Download:
ExeBatch.zip

Note:
‘%’ is the path
‘$’ is the filename (without extension)
‘!’ is the file extension (with dot)

The program is in italian, but i can translate it … if needed.

Ask for any problem.

The program can be used to make text script for any environment :wink: (not only Z, but Autocad, batch, ecc._)

Hope you like this

cameyo

Hi Cameyo
Autocad is the oposite of Zbrush :smiley:
I don’t believe that you will find more abstruse, complicated and crashed programm :slight_smile: I was an autocad guru :smiley:
Try make a hachures in a little complicated surfaces you obtain a beautifull crashed !
So using Zbrush is relaxing :slight_smile:

Your program seems very useful for the transformation of numbers files
Have fun scripting :slight_smile:
Pilou

Pilou

Love to try this out, if you have the time can you make a English version? My Italian is about as good as my Klingon

Very useful program. thanks for doing this, and sharing it.

Interesting program, but it seems unnecessarily awkward to use if I understand it correctly. I take it the code that appears in the body of the script (Corpo) has to be repeated for every file selected, substituting appropriate values for % $ and ! in each case? (If I’ve got this wrong, ignore the rest of the message!)

Assuming my reading of it is right, it seems to me what might be an easier user interface would be to have it run like a Wizard. My suggestion would be as follows.

Window 1 would ask you to specify (by browsing) the path and files to be converted; also the destination directory for the converted ZTL files.

The Next button would take you to a new window where the selected directory and list of file names was displayed, each file name with a second column to specify the smoothing (if any) required all set initially to the same default (whichever you think is likely to be the most popular).

The Next button here would take you to a window with a default path/name to receive the ZScript file to perform the specified conversions, which the user could change if wished.

The Finish button would generate the whole ZScript by looping through the filename/smoothing list to create the succesive blocks of code to go into the body. It would then display a message to say “ZScript xxx created successfully, Load ZBrush, load ZScript xxx and click the Run button.” (xxx as speified in the previous Wizard window).

That way there would be no need for the user to enter any scripting commands, just select files and alter smoothing settings from the default if need be.

I hope you don’t don’t think me ungrateful or mind me suggesting this fundamental interface redesign, but I think it would make a your good idea much easier to use.

EDIT Just correcting a minor typo, but I think my mis-typed instruction to “lick the Run button” would quickly make the screen rather messy!
:smiley:

Thank You all.
Digit: i’ll write an english version :wink:
Flycatcher: the program works for any environment, i can’t insert Z command (like smooth). You can insert all the commands you needs on Testa (Head), Corpo (Body) and Coda (Tail). You can do a lot of different things … other than “import and smooth” :wink:
Anyway the wizard interface is a good idea…now you must click manually on “files”, “struttura” and “Output” to perform a wizard-like.

I hope the english version will help.

cameyo

Hi all,
i have developed an English version…
Download: ExeBatch.zip

cameyo

p.s. Digit ask for an english version…

this will come in handy,great scripting,will
give it a go cameyo :+1:

Hello Cameyo,

May I say you are a verry productive ZBrush user thanks for the many good Scripts and proggies
Thats all

:slight_smile: :+1: :+1: :+1:

Thanks :slight_smile:
I have a lot of files to convert.

OK I do not understand how to use the program.

Here is a babble fish translation of the help file

In the first page (Files) it indicates which are the rows to elaborate. If you must some only cancel one of that you have already added enough to select it and to press Canc. In the second page (Structure) indicates: Head - what must write in head to the rows a single time Body - what must write for every rows selected Tail - what must write in tail to the rows a single time In the body is important to know that: % mean the single one path of the rows select $ mean the single name to you of the rows select to you (without east.) ! it means the single extension of the rows selects to you (comprised the point) In the third page (Output) it indicates: Up as it must be called the rows scr the push-button “Creates rows” executes you the creation of the rows that still does not come saved but visualized in the memo it centers them the push-button “Loaded” concurs you to load rows already created (not servants nearly to a c…) The push-button “You replace” concurs you to make tries and you replace on memo the push-button “Saves” up saves your rows with the indicated name. Example: To create DXF from DWG (Autocad) To select all the dwg in issue In the body to write: _ OPEN (Open instruction of autocad) % $ (path and name rows) _ DXFOUT (Dxfout instruction of autocad) [ enter ] (confirmation of the name rows) _ v (option version) R12 (number version) [ enter ] (confirmation of decimates them) The two enter final why the dxfout it wants two confirmations, one for the name rows, one for decimate them (default 6). If you want to change it in place of the second enter us you write the wished number. Saved the rows with extension scr it drags it within autocad opened on an empty design with the manager of the resources. FAMOUS: Set FILEDIA = 0 in Autocad in order to see what must put in the SCR

Hi SpaceMan
have you solved the problems?

cameyo

cameyo
I downloaded the Italian ver the first time went back an re-read the post and found the English ver - thank you for your generosity for making the software.

grazie :slight_smile: (bable fish translation of thank you I hope it’s correct)

Hello, grazie for your hard work in creating this script, I would like to try it out, however the dl link doesn’t seem to work,…