RAMotionList#

class ansys.rocky.app.motion.ra_motion_list.RAMotionList(id: str, model_id: str | None = None)#

Bases: ansys.rocky.app.ra_list.RAList[ansys.rocky.app.motion.ra_motion.RAMotion]

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.

Overview#

Import detail#

from ansys.rocky.app.motion.ra_motion_list import RAMotionList

Method detail#

classmethod RAMotionList.GetWrappedClass()#
classmethod RAMotionList.GetClassName()#