> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RAMotionFrameSource

### *class* 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`](#generated.RAMotionFrameSource)
from a [`RAStudy`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAStudy#generated.RAStudy) via:

```python theme={null}
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:

```python theme={null}
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`](#generated.RAMotionFrameSource.GetMotionFrame)(frame\_name) | Get a specific motion frame given its name. |
| [`GetParentMotionFrame`](#generated.RAMotionFrameSource.GetParentMotionFrame)() | Gets the parent motion frame. |
| [`IterMotionFrames`](#generated.RAMotionFrameSource.IterMotionFrames)() | Iterates over all the motion frames available (recursively). |
| [`NewConeCrusherFrame`](#generated.RAMotionFrameSource.NewConeCrusherFrame)() | Creates a new cone crusher frame. |
| [`NewFrame`](#generated.RAMotionFrameSource.NewFrame)() | Creates a new motion frame. |
| [`RemoveFrame`](#generated.RAMotionFrameSource.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](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAMotionFrame.md#generated.RAMotionFrame)

#### GetParentMotionFrame()

Gets the parent motion frame.
If the Motion Frame is a RAMotionFrameSource it returns None.

* **Return type:**
  [RAMotionFrame](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAMotionFrame.md#generated.RAMotionFrame)

#### IterMotionFrames()

Iterates over all the motion frames available (recursively).

* **Return iter(RAMotionFrame):**

#### NewConeCrusherFrame()

Creates a new cone crusher frame.

* **Return type:**
  [RAConeCrusherFrame](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAConeCrusherFrame.md#generated.RAConeCrusherFrame)

#### NewFrame()

Creates a new motion frame.

#### RemoveFrame(motion\_frame)

Removes a previously-created motion frame.

* **Parameters:**
  **motion\_frame** ([*RAMotionFrame*](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAMotionFrame.md#generated.RAMotionFrame) *or* [*RAConeCrusherFrame*](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAConeCrusherFrame.md#generated.RAConeCrusherFrame))
