py3dframe.FrameTree.to_dict#

FrameTree.to_dict()[source]#

Serialize the FrameTree to a dictionary.

The dictionary contains the serialized Frame objects and their relationships.

See also

The serialization have the following structure:

{
    "frames": {
        "frame_name_1": { ... Frame serialized dictionary ... },
        "frame_name_2": { ... Frame serialized dictionary ... },
        ...
    },
    "parents": {
        "frame_name_1": "parent_frame_name",
        "frame_name_2": "parent_frame_name",
        ...
    }
}
Returns:

The serialized FrameTree as a dictionary.

Return type:

dict