FBX Export Issue: Animated rigs not properly exported if they have a parent #93457

Open
opened 2021-11-29 00:27:39 +01:00 by Sébastien Périer · 5 comments

System Information
Operating system: Windows 10 Professionnel 21H1 19043.1348 Feature Experience Pack 120.2212.3920.0
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2

Blender Version
Blender 2.93.7 - Release Candidate
November 28, 02:25:35 - 63aa10802b32 x64

Short description of error
If you have more than one armature in your scene file, and that more than one is being parented (to an empty for example) the exported FBX will only keep animated mesh data for the first armature, all others will have the armature animated, but mesh stuck in T-Pose

Exact steps for others to reproduce the error

Open the attached blend file. 20211128140300727940.zip
You will see two animated character (from mixamo) both linked to an empty object
blender_char.png

Open the scripting panel, change the export path and execute the script

The script will simply export an FBX file using bpy.ops.export_scene.fbx
test.fbx

Once exported, import the fbx back in Blender:
fbx_export.png

The second character is in T-Pose while it's armature has the animation data. In the outliner, you can see that the mesh objects of morgan body are not parented to morgan (unlike for the first character)
notrelinkedData.png

Now, close and reopen the project,
Remove the two empties
Redo the Fbx export
Reimport the newly exported fbx.
Both character are animated properly.

The issue is only if they are parented, and the first armature of the outliner will always be exported properly.

**System Information** Operating system: Windows 10 Professionnel 21H1 19043.1348 Feature Experience Pack 120.2212.3920.0 Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 **Blender Version** Blender 2.93.7 - Release Candidate November 28, 02:25:35 - 63aa10802b32 x64 **Short description of error** If you have more than one armature in your scene file, and that more than one is being parented (to an empty for example) the exported FBX will only keep animated mesh data for the first armature, all others will have the armature animated, but mesh stuck in T-Pose **Exact steps for others to reproduce the error** Open the attached blend file. [20211128140300727940.zip](https://archive.blender.org/developer/F12599140/20211128140300727940.zip) You will see two animated character (from mixamo) both linked to an empty object ![blender_char.png](https://archive.blender.org/developer/F12599151/blender_char.png) Open the scripting panel, change the export path and execute the script The script will simply export an FBX file using bpy.ops.export_scene.fbx [test.fbx](https://archive.blender.org/developer/F12599159/test.fbx) Once exported, import the fbx back in Blender: ![fbx_export.png](https://archive.blender.org/developer/F12599153/fbx_export.png) The second character is in T-Pose while it's armature has the animation data. In the outliner, you can see that the mesh objects of morgan body are not parented to morgan (unlike for the first character) ![notrelinkedData.png](https://archive.blender.org/developer/F12599157/notrelinkedData.png) Now, close and reopen the project, Remove the two empties Redo the Fbx export Reimport the newly exported fbx. Both character are animated properly. The issue is only if they are parented, and the first armature of the outliner will always be exported properly.

Added subscriber: @Yenaphe

Added subscriber: @Yenaphe
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I had a problem running the script:

Traceback (most recent call last):
  File "C:\Users\GERMANO\Downloads\20211128140300727940\20211128140300727940.blend\Text", line 3, in <module>
  File "D:\Dev\BlenderDev\x64-Release\bin\RelWithDebInfo\3.1\scripts\modules\bpy\ops.py", line 132, in __call__
    ret = _op_call(self.idname_py(), None, kw)
TypeError: Converting py args to operator properties: : keyword "use_space_transform" unrecognized
Error: Python script failed, check the message in the system console

But after commenting out the problematic line, I can confirm that the parenting on the second rig is lost.

I had a problem running the script: ``` Traceback (most recent call last): File "C:\Users\GERMANO\Downloads\20211128140300727940\20211128140300727940.blend\Text", line 3, in <module> File "D:\Dev\BlenderDev\x64-Release\bin\RelWithDebInfo\3.1\scripts\modules\bpy\ops.py", line 132, in __call__ ret = _op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: : keyword "use_space_transform" unrecognized Error: Python script failed, check the message in the system console ``` But after commenting out the problematic line, I can confirm that the parenting on the second rig is lost.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#93457
No description provided.