RAMotionFrameSource
Last update: 23.02.2026class RAMotionFrameSource
Rocky PrePost Scripting wrapper for the root element for Motion Frames
This class represents the “Motion Frame” item on the project’s data tree. Get the RAMotionFrameSource
from a RAStudy via:
motion_frame_source = study.GetMotionFrameSource()
This is the element through which motion frames with no parent frames can be created, and through which all motion frames can be directly accessed:
motion_frame_1 = motion_frame_source.NewFrame()
motion_frame_2 = motion_frame.GetMotionFrame('My Frame')
for motion_frame in motion_frame.IterMotionFrames():
motion_frame.SetRelativePosition([1.0, 2.0, 3.0], 'm')
Methods:
| Name | Description |
|---|---|
GetMotionFrame(frame_name) |
Get a specific motion frame given its name. |
GetParentMotionFrame() |
Gets the parent motion frame. |
IterMotionFrames() |
Iterates over all the motion frames available (recursively). |
NewConeCrusherFrame() |
Creates a new cone crusher frame. |
NewFrame() |
Creates a new motion frame. |
RemoveFrame(motion_frame) |
Removes a previously-created motion frame. |
GetMotionFrame(frame_name)
Get a specific motion frame given its name.
- Parameters: frame_name (unicode)
- Return type: RAMotionFrame
GetParentMotionFrame()
Gets the parent motion frame. If the Motion Frame is a RAMotionFrameSource it returns None.
- Return type: RAMotionFrame
IterMotionFrames()
Iterates over all the motion frames available (recursively).
- Return iter(RAMotionFrame):
NewConeCrusherFrame()
Creates a new cone crusher frame.
- Return type: RAConeCrusherFrame
NewFrame()
Creates a new motion frame.
RemoveFrame(motion_frame)
Removes a previously-created motion frame.
- Parameters: motion_frame (RAMotionFrame or RAConeCrusherFrame)