py3dframe.FrameTree.set_root_frame#

FrameTree.set_root_frame(frame)[source]#

Set the root Frame of the FrameTree.

Parameters:

frame (Frame) – The Frame object to set as the root frame.

Return type:

None

Examples

from py3dframe import Frame, FrameTree

# Create a FrameTree
frame_tree = FrameTree()

# Create a new root frame
new_root_frame = Frame.canonical()

# Set the new root frame
frame_tree.set_root_frame(new_root_frame)