ZBrushCentral

Tool:Export issue with .fbx format

Hello,

When I try to perform an .obj export for a selected subtool within a zscript, I do this:
[FileNameSetNext, "<some path>.obj"][IPress, "Tool:Export"]

And this works, no problem.

But if I just change the file format to .fbx like this:
[FileNameSetNext, "<some path>.fbx"][IPress, "Tool:Export"]

ZBrush brings up a dialog box for saving an .fbx file, which is unexpected since we’ve already provided a file path. This doesn’t work well when running as a zscript/plugin.

Also, because of that dialog box, zbrush stops further execution of zscript which is calling that Tool:Export.

Is there any solution for this?

Hello @Himanish_Bhattachary , welcome on ZBC !

Yes it run a different Zscript once you ipress tool:import, and there is no way to avoid this note interface. you can at least use the obj format that will work if you want to batch export multiple subtools.

Hope this helps,
Nicolas

I don’t think Tool:Export FBX export is a note interface, it doesn’t look like that way. Could you explain how? You mentioned Tool:Import, I’m doing export here.
Also, I believe the FBX export calls an export function internally from ZStartup\ZPlugs64\FBXExportImportData_2021\FBXExportDLL64.dll. If I could get the function call signature for it, I can call it directly and not have to go through IPress Tool:Export.

at the moment you [IPress, Import:Export], your script stops to running, and anothere is taking the relay and display that note interface so it can prepare the data to be processed by the FBXExportDLL64.dll.
Now about accessing directly to the dll, there is no documentation on how to proceed.

hope it helps,
Nicolas