AnimationRotationAction.rotation Property

Parent Object: AnimationRotationAction

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::fusion" and the header file is <Fusion/Animation/AnimationRotationAction.h>

Description

Gets and sets the rotation of the rotation action. The rotation is represented by a Matrix3D which defines the rotation axis and angle. The matrix must be an orthogonal matrix; that is the axes are perpendicular to each other and there isn't any scaling or mirroring defined.

Syntax

"animationRotationAction_var" is a variable referencing an AnimationRotationAction object.
# Get the value of the property.
propertyValue = animationRotationAction_var.rotation

# Set the value of the property.
animationRotationAction_var.rotation = propertyValue
"animationRotationAction_var" Is a variable referencing an AnimationRotationAction Object.
#include <Fusion/Animation/AnimationRotationAction.h>

// Get the value of the property.
Matrix3D propertyValue = animationRotationAction_var->rotation();

// Set the value of the property, where value_var is a Matrix3D.
bool returnValue = animationRotationAction_var->rotation(value_var);
"animationRotationAction_var" Is a variable referencing an AnimationRotationAction Object.
// Get the value of the property.
propertyValue = animationRotationAction_var.rotation;

// Set the value of the property.
animationRotationAction_var.rotation = propertyValue;

Property Value

This is a read/write property whose value is a Matrix3D.

Version

Introduced in version November 2026