1. #1
    Senior Member Follow User Gallery
    Join Date
    Jun 2003
    Location
    Hawaii,USA
    Posts
    1,765

    Default Zspider idea for easy file browsing

    Hi everyone

    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

    It would be verry nice 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 .

    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

    well anyways,

    Hope this is possible... Thanks in advanced if someone is able to do this for us

    I think this would be a verry popular utility 8)
    For Hire.

  2. #2
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    ITALY
    Posts
    1,272

    Default

    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...

    Hope this helps

    cameyo

  3. #3
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    ITALY
    Posts
    1,272

    Default

    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.
    Attached Files Attached Files

  4. #4
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    ITALY
    Posts
    1,272

    Default

    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
    Attached Files Attached Files

  5. #5
    Senior Member Follow User Gallery
    Join Date
    Jun 2003
    Location
    Hawaii,USA
    Posts
    1,765

    Default

    WOW!

    Thank you Cameyo!

    What a Nice utility you have made ,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
    For Hire.

  6. #6
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    ITALY
    Posts
    1,272

    Default

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

    cameyo

  7. #7
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Hi cameyo,

    This looks very interesting and useful. Many thanks!

  8. #8
    Senior Member Follow User Gallery
    Join Date
    Jan 2003
    Location
    NYC
    Posts
    1,626

    Default Good idea!

    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.]

    [CODE]
    // - - - - - - - - - - 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,TOOLivide] = 1,
    [If,[IExists,TOOLeformation:Unify] = 1,
    [IPress,TOOLeformation: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,TOOLeformation:Unify]
    ]

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

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

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

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

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

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

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

    ]

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


    [/CODE]
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	grinchhead.jpg 
Views:	213 
Size:	8.4 KB 
ID:	6943  

  9. #9
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    ITALY
    Posts
    1,272

    Default

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

    Thanks to all.

    cameyo

  10. #10
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Cameyo,
    It's too late! Treatment would have no effect.

    Sven,
    Cool script!

  11. #11
    Senior Member Follow User Gallery
    Join Date
    Jun 2003
    Location
    Hawaii,USA
    Posts
    1,765

    Default

    Cool Zscript Sven!

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

    I am going to go and try the script

    Have a nice morning Everyone
    For Hire.

  12. #12
    Senior Member Follow User Gallery
    Join Date
    Feb 2004
    Location
    USA on Planet Earth somewhere in the Universe
    Posts
    1,438

    Default

    Seven
    I am not sure what I did - but I loaded your zscript in Z2 and clicked the play button and got this message
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Untitled-1 copy.jpg 
Views:	161 
Size:	22.1 KB 
ID:	7099  

  13. #13
    Senior Member Follow User Gallery
    Join Date
    Feb 2004
    Location
    USA on Planet Earth somewhere in the Universe
    Posts
    1,438

    Default

    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
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	1.jpg 
Views:	291 
Size:	26.3 KB 
ID:	7101   Click image for larger version. 

Name:	2.jpg 
Views:	292 
Size:	24.7 KB 
ID:	7102  

  14. #14
    Senior Member Follow User Gallery
    Join Date
    Jan 2003
    Location
    NYC
    Posts
    1,626

    Default

    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

  15. #15
    Senior Member Follow User Gallery
    Join Date
    Feb 2002
    Location
    France
    Posts
    15,017

    Post Another...

    ...cool free explorator multi langage Xnview
    Seems don't make an image of an Obj file
    Pilou
    Is beautiful that please without concept! ( Me and maybe also E Kant)
    Pilou's Galerie Pilou's Tips Tuts Page
    Cameyo's ZPlace Art Surfing Albums
    Dedicaces Perpetual Challenges
    French Pixologic Site

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •