> ## 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.

# RAMotionList

### *class* RAMotionList

Rocky PrePost Scripting wrapper to manipulate the motions in a single Motion Frame.

To get the [`RAMotionList`](#generated.RAMotionList) from a [`RAMotionFrame`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAMotionFrame#generated.RAMotionFrame), use:

```python theme={null}
motions = motion_frame.GetMotions()
```

The [`RAMotionList`](#generated.RAMotionList) class acts as a regular Python list, with the usual methods to iterate
and access individual motions:

```python theme={null}
motion_1 = motions.New()
motion_2 = motions.New()

for motion in motions:
    motion.SetStartTime(1, 's')

del motions[0]
motions.Clear()
```

The items in the motion list are of type [`RAMotion`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAMotion#generated.RAMotion).

**Methods:**

| Name | Description |
| - | - |
| [`Clear`](#generated.RAMotionList.Clear)() | Remove all items from the list. |
| [`New`](#generated.RAMotionList.New)() | Add a new item. |
| [`Remove`](#generated.RAMotionList.Remove)(item) | Remove an item from the list. |

#### Clear()

Remove all items from the list.

#### New()

Add a new item. Returns the newly created item.

#### Remove(item: T)

Remove an item from the list.
