AnimationVisibilityAction.setTransition Method

Parent Object: AnimationVisibilityAction

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

Description

Method that sets the transition for this visibility action.

Syntax

"animationVisibilityAction_var" is a variable referencing an AnimationVisibilityAction object.

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

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

#include <Fusion/Animation/AnimationVisibilityAction.h>

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

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

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

// Uses Optional arguments.
returnValue = animationVisibilityAction_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.
start double Specifies the start time of the transition.
end double Specifies the end time of the transition. This is ignored if the isInstant argument is true, otherwise this should be specified. 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