Storyboard.rotateComponent Method

Parent Object: Storyboard

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/Storyboard.h>

Description

Method that rotates an AnimationComponent by a specified rotation matrix.

Syntax

"storyboard_var" is a variable referencing a Storyboard object.

# Uses no optional arguments.
returnValue = storyboard_var.rotateComponent(component, rotation, startTime, endTime)

# Uses optional arguments.
returnValue = storyboard_var.rotateComponent(component, rotation, startTime, endTime, isTrailLineVisible)
"storyboard_var" is a variable referencing a Storyboard object.

#include <Fusion/Animation/Storyboard.h>

// Uses no optional arguments.
returnValue = storyboard_var->rotateComponent(component, rotation, startTime, endTime);

// Uses optional arguments.
returnValue = storyboard_var->rotateComponent(component, rotation, startTime, endTime, isTrailLineVisible);
"storyboard_var" is a variable referencing a Storyboard object.

// Uses no optional arguments.
returnValue = storyboard_var.rotateComponent(component, rotation, startTime, endTime);

// Uses Optional arguments.
returnValue = storyboard_var.rotateComponent(component, rotation, startTime, endTime, isTrailLineVisible);

Return Value

Type Description
AnimationRotationAction Returns the AnimationRotationAction object that was generated by the rotation if the animation component was successfully rotated, null otherwise.

Parameters

Name Type Description
component AnimationComponent Specifies the AnimationComponent to rotate.
rotation Matrix3D Specifies the rotation matrix. This is the delta rotation to be applied to the AnimationComponent. The final transform of the AnimationComponent will be the combination of the transform of the AnimationComponent at the startTime and the input rotation.
startTime double Specifies the start time of the rotation.
endTime double Specifies the end time of the rotation.
isTrailLineVisible boolean Optional specifies boolean indicating whether the trail line should be visible or not.

This is an optional argument whose default value is False.

Version

Introduced in version November 2026