Unexpected Keyframes when exporting FBX with ShapeKeys #104424
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#104424
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 11 Home 22H2
Graphics card: Nvidia Geforce RTX 3080
Blender Version
Broken: 3.3.3 LTS, 8d94aeb604fa, master, 2023-01-17 08:40
Worked: none (this has remained an issue since I starting using blender years ago)
Short description of error
When exporting geometry with shapekeys (not animated) and bone animations as an FBX file, all animation clips receive unexpected additional channels with keyframes on all shapekeys.
Exact steps for others to reproduce the error
Other Notes
@Saberpeep do you expect or want just the values to be written out without keys?
I would like you to be clear on what your expected results would be from the current settings or if you are asking for a new option to control keying for shapeKeys, so that if/when a developer can look at it, there is zero question of what needs to be done.
Thank you.
In this example the shapekeys are not animated. The animation in blender does not have any keyframes for the shapekeys. So therefore in the FBX export I would also expect the animation to have no keyframes for the shapekeys. And yet in the export all of them are keyed in every animation.
Keyframes for shape keys in a given animation should only exist in the FBX export if they also exist in the same animation in blender.
So I've done some digging into the source code of the exporter, and the issue is much larger than I thought. I'm not super fluent in python, so some of my assumptions might not be accurate. But it seems like the exporter has absolutely no concept of what keyframes belong to what animation clip or even which NLA track. It just seems to run the timeline along the length of the NLA track and records the transforms of all objects/bones, values of all shape keys, and focal distance of all cameras over time. Then once it has this massive collection of keyframes across all possible channels, it does the Simplify step to remove any keyframes that don't change.
The result is that without Simplify every animation just gets every single channel keyed (even things that weren't in the original clips such as the shapekeys). And with Simplify on, channels and even animations that are static without any changes in value are deleted entirely. I can turn on "Force Start and End Keying" to prevent the static animations from being deleted, but this of course also preserves all the unwanted channels.
The solution then would be for the exporter to at the very least limit itself to channels that actually exist in the clip (or at least the NLA track) that it is exporting. Though in an ideal world it should be exporting the exact channels and keyframes as they exist in the actual animation clips in the given NLA Track.