.FBX export fails in certain scenarios #77602

Closed
opened 2020-06-08 07:16:27 +02:00 by Hunan Bean · 11 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-05-31 21:28, hash: blender/blender@fcccee0c33
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: FBX format (4, 21, 2)
Author: Campbell Barton, Bastien Montagne, Jens Restemeier

Short description of error
Fails to export .fbx animation/NLA in this particular situation. cause unknown

Exact steps for others to reproduce the error
Successfully retarget a .BVH to existing armature. Watch as the retarget makes an NLA strip instead of keyframes. Press play, watch the animation work successfully. Try to export as .FBX, see following error messages

FBX export prepare: Wrapping Animations...
Traceback (most recent call last):
  File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\__init__.py", line 636, in execute
    return export_fbx_bin.save(self, context, **keywords)
  File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3198, in save
    ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod)
  File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3079, in save_single
    scene_data = fbx_data_from_scene(scene, depsgraph, settings)
  File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2458, in fbx_data_from_scene
    animations, animated, frame_start, frame_end = fbx_animations(tmp_scdata)
  File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2093, in fbx_animations
    ob.animation_data.action = None
AttributeError: bpy_struct: attribute "action" from "AnimData" is read-only

On further research, it is probably the same as the following

I have the same problem but and google it and got here, in my case I had renamed an Action and there was an action assigned to the mesh with this name and there were an action with the same name assigned to the armature. It has to be assigned to just one, even though I think it should always be assigned to the armature. On the outliner you can unlink the actions, it solved my problem. I hope this can be usefull to you.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87 **Blender Version** Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-05-31 21:28, hash: `blender/blender@fcccee0c33` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: FBX format (4, 21, 2) Author: Campbell Barton, Bastien Montagne, Jens Restemeier **Short description of error** Fails to export .fbx animation/NLA in this particular situation. cause unknown **Exact steps for others to reproduce the error** Successfully retarget a .BVH to existing armature. Watch as the retarget makes an NLA strip instead of keyframes. Press play, watch the animation work successfully. Try to export as .FBX, see following error messages ``` FBX export prepare: Wrapping Animations... Traceback (most recent call last): File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\__init__.py", line 636, in execute return export_fbx_bin.save(self, context, **keywords) File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3198, in save ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod) File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3079, in save_single scene_data = fbx_data_from_scene(scene, depsgraph, settings) File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2458, in fbx_data_from_scene animations, animated, frame_start, frame_end = fbx_animations(tmp_scdata) File "K:\Programs\blender-2.90.0x64\2.90\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 2093, in fbx_animations ob.animation_data.action = None AttributeError: bpy_struct: attribute "action" from "AnimData" is read-only ``` On further research, it is probably the same as the following >I have the same problem but and google it and got here, in my case I had renamed an Action and there was an action assigned to the mesh with this name and there were an action with the same name assigned to the armature. It has to be assigned to just one, even though I think it should always be assigned to the armature. On the outliner you can unlink the actions, it solved my problem. I hope this can be usefull to you.
Author

Added subscriber: @Hunanbean

Added subscriber: @Hunanbean
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Sorry this somehow slipped through, it has now been reported again in blender/blender#93185 (Phyton: Traceback Error) with an example file, will merge these reports

Sorry this somehow slipped through, it has now been reported again in blender/blender#93185 (Phyton: Traceback Error) with an example file, will merge these reports
Member

Closed as duplicate of blender/blender#93185

Closed as duplicate of blender/blender#93185
Member

Changed status from 'Duplicate' to: 'Confirmed'

Changed status from 'Duplicate' to: 'Confirmed'
Member

Hm, reported decided to withdraw, will confirm this one then (will still need to provide an example .blend file)

Hm, reported decided to withdraw, will confirm this one then (will still need to provide an example .blend file)
Member

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'
Member

So one reason I found for this error is the NLA being in tweakmode:
#77602.blend

But since I am not sure if this is really covering your case, I have reported this separately in #93209 (FBX export error if there is an action in NLA tweakmode) (fix incoming...).
For your case, it would be good to have an example .blend file (where the export fails) so we can reproduce if this is the same issue (or has a different cause)

So one reason I found for this error is the NLA being in tweakmode: [#77602.blend](https://archive.blender.org/developer/F11828554/T77602.blend) But since I am not sure if this is really covering your case, I have reported this separately in #93209 (FBX export error if there is an action in NLA tweakmode) (fix incoming...). For your case, it would be good to have an example .blend file (where the export fails) so we can reproduce if this is the same issue (or has a different cause)
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Aaron Carlisle self-assigned this 2022-01-25 21:35:20 +01:00
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
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#77602
No description provided.