    

 ## On this page

  

 

 # RALinearTimeVariableMoment

 Last update: 17.07.2025 

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

### *class* RALinearTimeVariableMoment

Rocky PrePost Scripting wrapper representing an Linear Time Variable Moment 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('Linear Time Variable Moment')
additional_force = motion_1.GetTypeObject()

```

**Methods:**

NameDescription[`GetInitialMomentValue`](#generated.RALinearTimeVariableMoment.GetInitialMomentValue)(\[unit\])Get the value of "Initial Moment Value".[`GetTimeCoefficients`](#generated.RALinearTimeVariableMoment.GetTimeCoefficients)(\[unit\])Get the value of "Time Coefficients".[`SetInitialMomentValue`](#generated.RALinearTimeVariableMoment.SetInitialMomentValue)(values\[, unit\])Set the values of "Initial Moment Value".[`SetTimeCoefficients`](#generated.RALinearTimeVariableMoment.SetTimeCoefficients)(values\[, unit\])Set the values of "Time Coefficients".<a id="generated.RALinearTimeVariableMoment.GetInitialMomentValue"></a>

#### GetInitialMomentValue(unit: Optional\[str\] = None)

Get the value of “Initial Moment Value”.

- **Parameters:****unit** – The unit for the returned values. If no unit is provided, the returned values will be in “N.m”.

<a id="generated.RALinearTimeVariableMoment.GetTimeCoefficients"></a>

#### GetTimeCoefficients(unit: Optional\[str\] = None)

Get the value of “Time Coefficients”.

- **Parameters:****unit** – The unit for the returned values. If no unit is provided, the returned values will be in “N.m/s”.

<a id="generated.RALinearTimeVariableMoment.SetInitialMomentValue"></a>

#### SetInitialMomentValue(values: Sequence\[Union\[str, float\]\], unit: Optional\[str\] = None)

Set the values of “Initial Moment Value”.

- **Parameters:**
    - **values** – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
    - **unit** – The unit for values. If no unit is provided, values is assumed to be in “N.m”.
- **Raises:****RockyApiError** – If values doesn’t have exactly 3 elements.

<a id="generated.RALinearTimeVariableMoment.SetTimeCoefficients"></a>

#### SetTimeCoefficients(values: Sequence\[Union\[str, float\]\], unit: Optional\[str\] = None)

Set the values of “Time Coefficients”.

- **Parameters:**
    - **values** – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
    - **unit** – The unit for values. If no unit is provided, values is assumed to be in “N.m/s”.
- **Raises:****RockyApiError** – If values doesn’t have exactly 3 elements.