i would be most appreciative if someone
would provide a link to ZFileUtils.lib
It’s not currently available. What function(s) did you require?
All of them really
I was hoping to use them to do some post processing on exported objs
mainly renaming groups, editing mtl ++
I have a cross com happening with my game engine.
Any extensions to ZBScript would be most welcome
frankly I think PixolLogic should rethink their scripting layer (swig)
// Export Realtime
On Export all subtools as subD 1
and do normal map forech
Merge objs as subtool = obj group
in objs Merge UVs to 0-1 , while scaling according to surface area of subtool
Pack Textures to 1x (4096)texture sheet
and normals
and Material index as int CHUNK
create comp obj
create mtl for comp obj
me pick up smiling
You missed:
make me a cup of coffee
It would be possible to write a dylib to rename groups and so on for OBJ files exported from ZBrush but not within ZBrush. You’d do this thru a Carbon dylib done in XCode. For stuff within ZBrush, zscript could achieve some of it.
I have some coffee standing by for you …
Perhaps some post processing in perl would be prudent.
I think I have seen some where that ZBrush can trigger external applications.
Can it pass arguments while doing this ?
It would be possible to launch an application and get it to open a particular file. As for passing arguments, presumably that would depend on the app having script access (such as Apple script) wouldn’t it? If you’re writing the app yourself, the simplest way would be for zscript to write to a data file which is read by the app on launch.
I would like to do some regex on the output objs using a perl script.
Perl (the interpreted language)
(unix mac)
like :
Zbpost.pl myExportedObj.obj
if i knew how to :
execute Zbpost.pl from ZBrush,
send args like myExportedObj.obj
I would be in good shape:
I have read the docs for [FileExecute ]
but require elaboration on it’s functionality
I would like to something like :
[IButton,UnixTest,"",
[FileExecute, /bin/echo, , “Hello world” > ~/hello.txt ]
]
unix is :
echo “Hello world” > ~/hello.txt
which would write “Hello world” to a file named hello.txt to my home directory
//
[IButton,UnixTest,"",
[FileExecute, /bin/echo, , “Hello world” ]
]
tilts ZBrush
with
2009/07/07 3:18:23 PM ZBrushOSX[1805] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be ‘Editor’, ‘Viewer’, ‘None’, or ‘Shell’.
2009/07/07 3:18:23 PM com.apple.launchd[156] ([0x0-0xc80c8].ZBrushOSX[1805]) Exited abnormally: Segmentation fault
in console
Romm, you can use the new ShellExecute ZScript command.
Simply use the following…
[ShellExecute,“open -a thePathToTheApplication thePathToTheFile”]
Example: To open an obj file named “sphere.obj” with the TextEdit application use…
[ShellExecute,“open -a /Applications/TextEdit.app sphere.obj”]
Tip1: if the path to the application contains white spaces, you need to add quotation marks.
Example: To open an obj file named “sphere.obj” with “/My Folder/My Application.app” use…
[ShellExecute,[StrMerge,“open -a “,[StrFromAsc,34],”/My Folder/My Application.app”,[StrFromAsc,34]," sphere.obj"]]
Tip2: If the file that you want to open is already associated with a ‘default application’ you may omit the application path.
Example: To open a Photoshop file named MyPicture.psd you can simply use the following…
[ShellExecute,“open MyPicture.psd”]
excellent