ZBrushCentral

How to set FBX export options through a ZScript?

Hi!

I would like to add an “Export FBX” button to my ZScript UI and I am looking for the commands to set FBX Export Options via the script, as well as a command to bypass this window…

FbxExportOptions

When doing a new macro recording and exporting as FBX, I am given the following commands, which don’t seem to register any of my settings in the FBX Export Options.

//ZBRUSH MACRO - Recorded in ZBrush version 2020
[IButton,???,"Press to run this macro. Macros can be aborted by pressing the ëescí key.",
[IShowActions,0]
[IConfig,2020]
[FileNameSetNext,"C:\Users\User\Desktop\PM3D_Sphere3D_1.fbx"]
[IPress,Tool:Export]
[IFreeze,
]
[ISet,Tool:Geometry:SDiv,1]
]

How do I set the FBX Export Options via script?

Hi @davidbk !

Rule 1

Only a single script can run at once.

When you export and choose the fbx format, then Zbrush will prompt you to setup the export with that note interface. That scenario would not happen if you choose the OBJ file format, So when it displays that note interface it means that you had lost the focus of your main script, and that another script is active.
Using the FBX ImportExport plugin will lead exactly to the same issue.
You can export to OBJ format, but not the OBJ Extended file format which got that same note interface to setup the export too.

You can submit a feature request to the support. if you want :
https://support.pixologic.com/conversation/new

Hope it helps,
Nicolas

Thanks @facelessmindz !

Does the FBX ImportExport plugin have a dll file with routines that I can call through my script? In other words, is there any way for me to access the functionality without activating a second script?