Profile Picture

Batch FBX Animation exporter plugin - Unity presets

Posted By long.michaelj1990 5 Years Ago
You don't have permission to rate!
Author
Message
long.michaelj1990
long.michaelj1990
Posted 5 Years Ago
View Quick Profile
New Member

New Member (94 reputation)New Member (94 reputation)New Member (94 reputation)New Member (94 reputation)New Member (94 reputation)New Member (94 reputation)New Member (94 reputation)New Member (94 reputation)New Member (94 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 1, Visits: 20
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!
AllenLee (RL)
AllenLee (RL)
Posted 5 Years Ago
View Quick Profile
Senior Member

Senior Member (343 reputation)Senior Member (343 reputation)Senior Member (343 reputation)Senior Member (343 reputation)Senior Member (343 reputation)Senior Member (343 reputation)Senior Member (343 reputation)Senior Member (343 reputation)Senior Member (343 reputation)

Group: Forum Members
Last Active: 9 Months Ago
Posts: 54, Visits: 541
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



Reading This Topic