Batch FBX Animation exporter plugin - Unity presets


https://forum.reallusion.com/Topic451525.aspx
Print Topic | Close Window

By long.michaelj1990 - 5 Years Ago
Hey all,
I am currently in the process of creating a batch animation FBX exporter plugin. I'm basically done apart from a Unity preset button. The following page has only got an unreal example and i'm not a Unity user.
https://wiki.reallusion.com/IC_Python_API:RLPy_RFileIO#ExportFbxFile_.28_self.2C_spObject.2C_strFilePath.2C_eOptions.2C_eOptions2.2C_eOptions3.2C_eTextureSize.2C_eFormat.2C_strIncludeMotionPath_.29

Any comments on which options should be included in the preset would help me a lot.

Thanks!
By AllenLee (RL) - 5 Years Ago
Hi long.michaelj1990,

Basically you have to include the following options:

            export_option = RLPy.EExportFbxOptions__None
            export_option2 = RLPy.EExportFbxOptions2__None
            export_option3 = RLPy.EExportFbxOptions3__None
            export_option = export_option | RLPy.EExportFbxOptions_AutoSkinRigidMesh
            export_option = export_option | RLPy.EExportFbxOptions_ExportRootMotion
            export_option = export_option | RLPy.EExportFbxOptions_ZeroMotionRoot
            export_option = export_option | RLPy.EExportFbxOptions_ExportPbrTextureAsImageInFormatDirectory
            export_option = export_option | RLPy.EExportFbxOptions_ExportMetallicAlpha
            export_option = export_option | RLPy.EExportFbxOptions_MergeDiffuseOpacityMap
            export_option = export_option | RLPy.EExportFbxOptions_RemoveAllUnused
            export_option2 = export_option2 | RLPy.EExportFbxOptions2_YUp
            export_option2 = export_option2 | RLPy.EExportFbxOptions2_RenameDuplicateMaterialName
            export_option2 = export_option2 | RLPy.EExportFbxOptions2_RenameTransparencyWithPostFix
            export_option2 = export_option2 | RLPy.EExportFbxOptions2_RenameBoneRootToGameType
            export_option2 = export_option2 | RLPy.EExportFbxOptions2_ResetBoneScale
            export_option2 = export_option2 | RLPy.EExportFbxOptions2_ExtraWordForUnityAndUnreal
            export_option2 = export_option2 | RLPy.EExportFbxOptions2_BakeMouthOpenMotionToMesh
            export_option2 = export_option2 | RLPy.EExportFbxOptions2_UnityPreset


And add options according to your needs.

Allen Lee