Is there really no way to preserve dict key order?

   66   0   1
User Avatar
Member
68 posts
Joined: April 2019
Offline
Hi,

I have a workflow involving exporting FBX animations to Unreal Engine with custom attributes (animation curves).

Unreal Engine imports these curves in the order they are listed on the fbx_custom_attributes point attribute, and the order is important for my workflow.

The problem is that the fbx_custom_attributes attribute is a dict type and even though I am adding the keys/values in the order I need, they always get scrambled.

In the image below, the list on the left is the order I need to keys to be in and on the right is the order they end up in.



Is there really no way to preserve the order of the keys in a dict attribute?

Thanks
Peter
Edited by mrpdean - today 09:32:46

Attachments:
dict_key_order.jpg (58.4 KB)

  • Quick Links