ZBrushCentral

Command Reference Error?/FileNext..

I am trying to point to a folder to load a tool of my choosing.

Command reference code to open a dialog box;

[FileNameSetNext,""].

My code;

[FileNameSetNext,"ZBRUSH_ZScripts/MyScript/Plants/"]. [IPress,TOOL:Load Tool] ]

Should open a load dialog box to the folder but does not. Gives error. What gives?

I don’t believe this is a function for setting the next directory (at least I don’t see anything in the docRef), It is meant to make the dialog not show up at all by passing it a legal filename. I believe it only works for files with extensions ( in my experiences I remember something funny about it only working with file extensions that are 3 characters long, 4 with the ‘.’).

Good luck,

Chris Reid

May have found a work around Load a dummy tool from the folder

  1. load dummy tool code
  2. unpress Zfolders code
  3. load tool code.

Not as clean but maybe load from that folder.

:+1:

Nope does not work. Back to square one.

LINK
CHeck out this link…
As long as you are loading and not saving I think this may help you.

SideNote:
I am writing a utility dll that will help windows users to have more options with ZBrush scripting. It is very much a side project, but when things like this come up it is nice to see what scripters need.

Hope the link helps.

Chris Reid

I checked the link out but there does not seem to be a way to point to a directory then open that directory window prior to loading a tool.

I wanted to pick my tool from directory rather than make a bunch of buttons to load each tool.

I am surprise since it is easy to write a script to load a tool, but not to open the dialog window before loading the tool.

PM me if you are interested in testing out the Utility. We Can easily make this work with a little windows magic. I believe I already have this feature built into it. (only for windows, so far)

Later,

Chris