FBX import and export custom properties setting isn't work or isn't working correctly #104677
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#104677
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-10-10.0.19045-SP0 64 Bits
Graphics card: Quadro RTX 3000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.95
Blender Version
Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash:
e1ccd9d4a1d3
Worked: Not sure when or if it worked I tested 3.4 and 4.0 alpha and 3.51 they all had the same problem
Short description of error
Export
Import
Exact steps for others to reproduce the error
Create an armature with a single bone
Go to pose mode and add a custom property on the bone and animate it.
Export it to FBX with custom properties turned on
Check it in Unity or any FBX tool that isn't Blender to see that the property exists and isn't animated.
Create a new file and import the fbx back in making sure custom properties are checked on in the import settings.
Select the bone and go to pose mode and see that there are no custom properties on the bone.
The test file has animated properties on the armature and a single bone in pose mode and a cube and all 3 have been animated.
I recently had a look at custom properties due to a reported issue and noticed there were some gaps. Here's a rundown of the current support:
Imported custom properties:
Missing:
It would probably be a good idea to support importing the same custom properties that Blender is capable of exporting.
Exported custom properties:
Missing:
It should be possible to export Armature data custom properties in the same way as Bone custom properties, whereby the custom properties are added to the FBX NodeAttribute (the Armature Object and Pose Bone custom properties are added to the FBX Node).
Supported imported property types:
Missing:
There are also a number of unsupported types that can be found in fbx_utils.py in
FBX_PROPERTIES_DEFINITIONS
, but its unclear which can be used with custom properties.I suspect there may be many other unsupported property types too.
The property types that Blender exports custom properties as are:
Boolean properties could be changed to export with a bool property type and with the, I think fairly recent, addition of subtypes for custom properties, float-vector properties that have a color subtype could probably be exported as one of the Color property types.
Custom Property min/max values are neither imported nor exported. Single-value, numeric custom properties appear to support two extra values of the same type as the custom property that look like they are the min/max values of that property.
Edit: Upon further investigation, these extra values appear to only be available for animatable/animated properties.
For importing and exporting custom property animations I have no idea currently because I'm yet to understand much of the animations side of the FBX addon.
Wow thank you for that information and the investigation, we should add it to the FBX addon docs that have custom properties entry as a ToDo with no information.
For animation and FBX I don't have a good answer but maybe you can look at what did for this addon and see if it helps you make sense of what needs to be done for animation support for the existing custom properties.
The fact that you can create and export but then not import them back through FBX or even their action is really a sneaky data Loss issue if you are trying to test and validate settings for a game characters etc... this has happened to me before but I didn't have to bring them back in at the time to Blender luckily but when I did to check I wondered why they weren't there....glad it is an actual missing thing instead of my mistake.
Thank you both for bringing attention to these issues! Definitely a lot of room for improvement here in ways that will make Blender a much easier tool to integrate in broader DCC/Engine/Etc. pipelines.
To summarize a bit, it sounds like the main concerns, which are things I've also had trouble with, are:
Yes I told them before #104543
That's definitely not the same issue as this one.
Is anyone able to do some fixes and improvements on this?
Unfortunately, I don't think there are any developers actively working on the FBX IO addon specifically, just myself doing bits and pieces in some of my spare time.
I've put together a first patch that makes all the exported custom properties also imported and vice versa.