py3dframe.FrameTree.replace_frame#

FrameTree.replace_frame(name, frame)[source]#

Replace a Frame in the FrameTree with another Frame.

The new Frame will inherit the parent and children of the replaced Frame.

Warning

The root frame cannot be replaced in the FrameTree with this method.

See also

Parameters:
  • name (str) – The name of the frame to replace.

  • frame (Frame) – The new Frame object to replace the existing frame.

Return type:

None