    

 ## On this page

  

 

 # RAFreeBodyTranslation

 Last update: 23.02.2026 

<a id="generated.RAFreeBodyTranslation"></a>

### *class* RAFreeBodyTranslation

Rocky PrePost Scripting wrapper representing a Free Body Translation motion.

Retrieve this specific wrapper after setting the correct motion type on a [`RAMotion`](RAMotion.md#generated.RAMotion). For example:

```python
motions = motion_frame.GetMotions()
motion_1 = motions.New()
motion_1.SetType('Free Body Translation')
free_body_translation = motion_1.GetTypeObject()

```

**Methods:**

NameDescription[`GetFreeMotionDirection`](#generated.RAFreeBodyTranslation.GetFreeMotionDirection)()Get "Free Motion Direction" as a string.[`GetValidFreeMotionDirectionValues`](#generated.RAFreeBodyTranslation.GetValidFreeMotionDirectionValues)()Get a list of all possible values for "Free Motion Direction".[`SetFreeMotionDirection`](#generated.RAFreeBodyTranslation.SetFreeMotionDirection)(value)Set the value of "Free Motion Direction".<a id="generated.RAFreeBodyTranslation.GetFreeMotionDirection"></a>

#### GetFreeMotionDirection()

Get “Free Motion Direction” as a string.

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

<a id="generated.RAFreeBodyTranslation.GetValidFreeMotionDirectionValues"></a>

#### 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’\].

<a id="generated.RAFreeBodyTranslation.SetFreeMotionDirection"></a>

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