AnimationViewAction.setTransition Method

Parent Object: AnimationViewAction

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

Description

Method that sets the transition for this view action. View actions do not support instant transitions, so calling this with the isInstant argument set to true will fail.

Syntax

"animationViewAction_var" is a variable referencing an AnimationViewAction object.

# Uses no optional arguments.
returnValue = animationViewAction_var.setTransition(isInstant, start)

# Uses optional arguments.
returnValue = animationViewAction_var.setTransition(isInstant, start, end)
"animationViewAction_var" is a variable referencing an AnimationViewAction object.

#include <Fusion/Animation/AnimationViewAction.h>

// Uses no optional arguments.
returnValue = animationViewAction_var->setTransition(isInstant, start);

// Uses optional arguments.
returnValue = animationViewAction_var->setTransition(isInstant, start, end);
"animationViewAction_var" is a variable referencing an AnimationViewAction object.

// Uses no optional arguments.
returnValue = animationViewAction_var.setTransition(isInstant, start);

// Uses Optional arguments.
returnValue = animationViewAction_var.setTransition(isInstant, start, end);

Return Value

Type Description
boolean Returns true if the transition was set successfully, false otherwise.

Parameters

Name Type Description
isInstant boolean Specifies whether the action is instant or duration transition. This must be false for a view action.
start double Specifies the start time of the transition.
end double Specifies the end time of the transition. When set the end value should be at least 0.2 larger than the start value.

This is an optional argument whose default value is -1.0.

Version

Introduced in version November 2026