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
Frame.to_dict(): Serialize a Frame object to a dictionary.FrameTree.from_dict(): Deserialize a FrameTree from a dictionary.
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: