Skip to main content

Rocky PrePost scripting 2026 R1

RAMotionList

Last update: 23.02.2026

class RAMotionList

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

To get the RAMotionList from a RAMotionFrame, use:

motions = motion_frame.GetMotions()

The RAMotionList class acts as a regular Python list, with the usual methods to iterate and access individual motions:

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.

Methods:

Name Description
Clear() Remove all items from the list.
New() Add a new item.
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.

Connect with Ansys