ZBrushCentral

Zspider idea for easy file browsing

Hi everyone :slight_smile:

I had a nice idea today for a Zscript…

I wonder if someone could write a Zscript that would let the user input a Folder/Directory name , and then the Zscript goes about and looks in the folder and all the Subfolders under it for .OBJ files… when it finds the .OBJ file it loads it into Zbrush, and snaps off a 96X96 snapshot for the X,y,and Z axis, and saves the bitmapped files to the folder with the .obj-filename-FOO-Xaxis.bmp … then continues its search untill there are no more folders.

well perhaps have the script load Zbrush tools and DXF files too :slight_smile:

It would be verry nice :slight_smile: I think a script like this would be verry popular… another nice feature would be if the Zscript looked for a Bitmap or Jpeg with file name matching the .obj file and loaded it for the models texture :slight_smile: .

Before I go looking through my archives for a model, I can run this Zscript really fast to update the thumbnails in my model Archive, and then easily go about and shop for the model I need for the sceene useing my windows Explorer…

Heh! If I do it to my network drive I can use konquor, or nautalis, of Xffm to brows my model files in linux too !! I use a linux system for my blender and Wings 3d work :slight_smile:

well anyways,

Hope this is possible… Thanks in advanced if someone is able to do this for us :slight_smile:

I think this would be a verry popular utility 8)

Some time ago i posted an utility to build zscript as macro…
It is a Delphi program who allows to write the operation for one file (first obj) and then write a script for each file in directory…
Search in this forum… :cool:

Hope this helps

cameyo

After a big search…i have found the program in one of my hard-disks…
Basically you must your operation with ZBrush recording a zscript…then you can use my program to apply the script to N files. Read the help inside.

Hope this helps.

cameyo

p.s. if you have problem …please ask.

Well, i have some time to show the method:

  1. i have exported 3 ZTL to OBJ (i don’t have obj now :))
  2. registered a script of operation requested on one obj (see thumb_base.txt)
  3. run the my program and write …see image.
    Image1.jpg
  4. Now build the script (output tab) (see OUT.txt)
  5. Now you can run the script within Z and obtain your thumbs

Hope this helps.

cameyo

WOW!

Thank you Cameyo! :sunglasses:small_orange_diamond:+1:

What a Nice utility you have made :slight_smile: ,I will Give this a try, Thank you for shareing this with all of us again …

You are a really nice Guy Cameyo
I hope you have a good day :slight_smile:

Hi Polaris30 :slight_smile: ,
you can do a lot of macros with this small program, not only for ZBrush.
Thanks for your kind words.

cameyo

Hi cameyo,

This looks very interesting and useful. Many thanks! :+1:

Hey Cameyo,

Thanks for bringing this back. I think I remember seeing it posted a while back, but I neglected to grab it. I like your thinking on this - I tried to imagine a way to automate rendering all the tools in a directory but couldn’t solve.

I’d be curious to see how various scripters code the looping body portion.

Sven

[Edit - added a Zscript sample I tried today that seems to work. It generates a four-view thumbnail 160x160 for each ZTool file.]


// - - - - - - - - - - BEGIN HEAD - - - - - - - - - -

// loop to create Tool renders


[IButton," Gen-Images","generates images for all tools in directory",

	// Prep canvas
	[IUnPress,DOCUMENT:Pro]
	[ISet,DOCUMENT:Height,160]
	[ISet,DOCUMENT:Width,160]
	[IKeyPress,13,[IPress,DOCUMENT:Resize]]
	[IPress,TOOL:SimpleBrush]
	[IPress,LAYER:Clear]

// - - - - - - - - - - END HEAD - - - - - - - - - -



// - - - - - - - - - - BEGIN BODY - - - - - - - - - -

// load NEXT tool to view
	[IPress,LAYER:Clear]
	[FileNameSetNext,"%$!"]
	[IPress,TOOL:Load Tool]
	[If,[IExists,TOOL:Divide] = 1,
		[If,[IExists,TOOL:Deformation:Unify] = 1,
			[IPress,TOOL:Deformation:Unify]
		, // else
			[VarSet,TextureNumber,TEXTURE:ItemInfo]
			[VarSet,MaterialNumber,MATERIAL:ItemInfo]
			[IPress,TOOL:Make PolyMesh3d]
			[ISet,TOOL:ItemInfo,[IGetMax,TOOL:ItemInfo]]
			[ISet,TEXTURE:ItemInfo,TextureNumber]
			[ISet,MATERIAL:ItemInfo,MaterialNumber]
			[IPress,TOOL:Deformation:Unify]
		]

	// front view
		[CanvasClick,40,40,40,90]
		[IPress,LAYER:Bake]

	// side view
		[CanvasClick,120,40,120,90]
		[IPress,TRANSFORM:Edit]
		[IModSet,TOOL:Deformation:Rotate,2]
		[ISet,TOOL:Deformation:Rotate,90]
		[IPress,LAYER:Bake]

	// top view
		[CanvasClick,40,120,40,170]
		[IPress,TRANSFORM:Edit]
		[IModSet,TOOL:Deformation:Rotate,2]
		[ISet,TOOL:Deformation:Rotate,-90]
		[IModSet,TOOL:Deformation:Rotate,1]
		[ISet,TOOL:Deformation:Rotate,-90]
		[IPress,LAYER:Bake]

	// 3/4 view
		[CanvasClick,120,120,120,170]
		[IPress,TRANSFORM:Edit]
		[IModSet,TOOL:Deformation:Rotate,1]
		[ISet,TOOL:Deformation:Rotate,90]
		[IModSet,TOOL:Deformation:Rotate,4]
		[ISet,TOOL:Deformation:Rotate,30]
		[IModSet,TOOL:Deformation:Rotate,2]
		[ISet,TOOL:Deformation:Rotate,-45]
		[IPress,LAYER:Bake]

	// save picture
		[FileNameSetNext,"%$.psd"]
		[IPress,DOCUMENT:Export]
	]

// - - - - - - - - - - END BODY - - - - - - - - - -

// - - - - - - - - - - BEGIN TAIL - - - - - - - - - -

]

// - - - - - - - - - - END TAIL - - - - - - - - - -



Attachments

grinchhead.jpg

Hi,
Sven: thanks for try my small program.
Marcus Civis: seem to me you have a big problem: you are addicted to zscript :slight_smile: !!!
Warning!!! It’s dangerous :wink:

Thanks to all.

cameyo

Cameyo,
It’s too late! Treatment would have no effect. :laughing:

Sven,
Cool script! :+1:

Cool Zscript Sven!

Thanks for doing this for us :slight_smile: This is turning out to be a verry interesting thread.

I am going to go and try the script :slight_smile: :+1:

Have a nice morning Everyone :slight_smile:

Seven
I am not sure what I did - but I loaded your zscript in Z2 and clicked the play button and got this message

Attachments

Untitled-1 copy.jpg

cameyo
I downloaded your scripts

I loaded the OUT script in Z2 and clicked the play and got these messages
(see attach file)
and this one
(see attach file)

On the Thumb-base script I get the same error as the one I posted about Seven’s script

Attachments

1.jpg

2.jpg

Space,

Actually, my script won’t run directly in ZBrush. You need to plug parts of my script into Cameyo’s utility and that involves five separate steps.

1.) Under the STRUCTURE tab in Cameyo’s EXE BATCH utility, you need to cut and paste the HEAD, the BODY and the TAIL sections from my script into the appropriate windows.

2.) Then under the FILES tab select the directory and a list of .ZTL files you want to generate thumbnails for.

3.) Under the OUTPUT tab you first press the CREATE FILE button which generates a NEW SCRIPT in the window based on all of the .ZTL files you selected under the FILES tab. The BODY part of my script is automatically repeated for each .ZTL file you chose.

4.) Finally, you press the SAVE FILE button which saves the NEW SCRIPT under a name you provide.

5.) After that, you start ZBrush and run the NEW SCRIPT you just created and it will spit out .PSD thumbnails, one for each .ZTL you chose, in the same directory as the original .ZTL files.

You can then view any of the new .PSD thumbnails in your favorite image-viewing utility (I use ACDSee 4.0).

Sven

…cool free explorator multi langage Xnview :cool:
Seems don’t make an image of an Obj file :confused:
Pilou

Seven :sunglasses: Thanks for the step by step:+1: :+1: :+1:

Attachments

lexmor1aAa.jpg

Hi.

Has this been updated to 3.1?

Thanks!

~S.~

SNARK,

This was never a fully fledged ZBrush utility, more of an idea. So it’s not in line to be updated.

Thanks, Marcus!

~S.~