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

# RAFreeBodyRotation

### *class* RAFreeBodyRotation

Rocky PrePost Scripting wrapper representing a Free Body Rotation motion.

Retrieve this specific wrapper after setting the correct motion type on a [`RAMotion`](https://developer.synopsys.com/docs/rocky/rocky-prepost-scripting/RAMotion#generated.RAMotion). For
example:

```python theme={null}
motions = motion_frame.GetMotions()
motion_1 = motions.New()
motion_1.SetType('Free Body Rotation')
free_body_rotation = motion_1.GetTypeObject()
```

**Methods:**

| Name | Description |
| - | - |
| [`GetFreeMotionDirection`](#generated.RAFreeBodyRotation.GetFreeMotionDirection)() | Get "Free Motion Direction" as a string. |
| [`GetValidFreeMotionDirectionValues`](#generated.RAFreeBodyRotation.GetValidFreeMotionDirectionValues)() | Get a list of all possible values for "Free Motion Direction". |
| [`SetFreeMotionDirection`](#generated.RAFreeBodyRotation.SetFreeMotionDirection)(value) | Set the value of "Free Motion Direction". |

#### GetFreeMotionDirection()

Get “Free Motion Direction” as a string.

* **Returns:**
  The returned value will be one of \[‘none’, ‘x’, ‘y’, ‘xy’, ‘z’, ‘xz’, ‘yz’, ‘xyz’].

#### GetValidFreeMotionDirectionValues()

Get a list of all possible values for “Free Motion Direction”.

* **Returns:**
  The returned list is \[‘none’, ‘x’, ‘y’, ‘xy’, ‘z’, ‘xz’, ‘yz’, ‘xyz’].

#### SetFreeMotionDirection(value: str)

Set the value of “Free Motion Direction”.

* **Parameters:**
  **value** – The value to set. Must be one of \[‘none’, ‘x’, ‘y’, ‘xy’, ‘z’, ‘xz’, ‘yz’, ‘xyz’].
* **Raises:**
  **RockyApiError** – If value is not a valid “Free Motion Direction” option.
