Maniphest T56653

FBX Animation Action Export Issue
Confirmed, NormalBUG

Assigned To
None
Authored By
Will Davies (x_tech)
Sep 2 2018, 12:35 AM
Tags
  • Add-ons (Community)
  • Import/Export
Subscribers
Bastien Montagne (mont29)
dan grauer (kromar)
Frankie Hobbins (Frankieh)
Will Davies (x_tech)

Description

System Information
-Windows 10
-NVidia GTX 1080 Founders Edition

Blender Version
Broken: 2.79b

Short description of error
I have a object in Blender that is rigged with 3 animations in the action editor. When exporting via FBX binary, only 2 of the three animation actions get exported. When exporting using FBX ASCII, all animations are exported correctly. Also, with ASCII, I've been experiencing issues where ASCII will export incorrect texture file names.

Exact steps for others to reproduce the error
Download

  • I'm not sure if there's a better way to do this, but I've been converting .fbx binary files to JSON with this (command: conv.exe toConvert.fbx output.g3dj) to inspect the files.
  • Export the files using the built in Blender to FBX export function (binary). Convert to .g3dj using the utility, or inspect with another method. The FBX file does not contain all animations present in the .blend file.
  • Export the files using Blender FBX ASCII. Inspect the ASCII file using Notepad, all animation actions should be present (in this case: engage, disengage, fire).

Related Objects

Event Timeline

Will Davies (x_tech) created this task.Sep 2 2018, 12:35 AM
Bastien Montagne (mont29) lowered the priority of this task from 90 to 30.EditedSep 2 2018, 2:36 PM
Bastien Montagne (mont29) added a project: Import/Export.
Bastien Montagne (mont29) added a subscriber: Bastien Montagne (mont29).

Please:

  • Ignore ASCII, this is deprecated and no more maintained at all (and to be removed soon from the codebase).
  • Give us exact settings you are using for your FBX export.
Bastien Montagne (mont29) added a comment.Sep 2 2018, 4:15 PM

… And making twice the same report is not a good idea either. Not at all. We already have way too much reports to handle! Suggest you think about it twice next time.

Bastien Montagne (mont29) merged a task: T56624: FBX Animation Action Export Issue.Sep 2 2018, 4:15 PM
Will Davies (x_tech) added a comment.EditedSep 2 2018, 4:45 PM

@Bastien Montagne, sorry, I tried to report the bug through Blender with the built in report button in the add-ons and also through the website. I didn't realize they connected to the same thing. Won't happen again.

Will Davies (x_tech) added a comment.Sep 3 2018, 5:54 PM

I think I solved this issue, FBX export apparently doesn't export animation actions with unused key frames in them. It'd be nice if it'd output a message displaying this.

Bastien Montagne (mont29) claimed this task.Sep 3 2018, 6:44 PM
Bastien Montagne (mont29) raised the priority of this task from 30 to 50.

@Will Davies (x_tech) Uuuh indeed… Force Start/End Keying should prevent that behavior, will check.

dan grauer (kromar) added a subscriber: dan grauer (kromar).Apr 7 2019, 5:47 PM
Dalai Felinto (dfelinto) removed Bastien Montagne (mont29) as the assignee of this task.Dec 23 2019, 4:36 PM
Dalai Felinto (dfelinto) added a project: Tracker Curfew.
Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Bug".Feb 17 2020, 5:05 PM
Bastien Montagne (mont29) edited projects, added Python API; removed Tracker Curfew.
Frankie Hobbins (Frankieh) added a subscriber: Frankie Hobbins (Frankieh).Mar 11 2020, 12:08 PM

I was about to file a bug but this seems to be the same (although not very well described so I'll add more details here ,sorry if its the wrong thing to do)

  • If you have an action with f-curves that contain errors the action will not export to .FBX.
  • The simplest way to get this happening is to make an armature with 2 bones then make an action and key frame both bones. Now delete one of the bones and notice in the action editor the f-curves for the deleted bone have red lines under.
  • Export to FBX with default settings, then open the FBX and notice the action has not exported. (I used unity and autodesk fbx viewer)
  • Delete the f-curves with errors and re-export then notice how the action has exported.

I have attached a zip with a blend file and fbx showing the behaviour. Action "A-will" will export and action "B-wont" wont.

Ideally the action would still export even if there are errors.

Campbell Barton (campbellbarton) moved this task from Backlog to Under Discussion on the Python API board.Jun 18 2020, 3:14 PM
Campbell Barton (campbellbarton) removed a project: Python API.Jun 18 2020, 3:53 PM