AnimationActor.getActions Method

Parent Object: AnimationActor

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

Description

Method that returns the AnimationAction objects of the specified action type associated with this animation actor.

Syntax

"animationActor_var" is a variable referencing an AnimationActor object.

# Uses no optional arguments.
returnValue = animationActor_var.getActions()

# Uses optional arguments.
returnValue = animationActor_var.getActions(actionType)
"animationActor_var" is a variable referencing an AnimationActor object.

#include <Fusion/Animation/AnimationActor.h>

// Uses no optional arguments.
returnValue = animationActor_var->getActions();

// Uses optional arguments.
returnValue = animationActor_var->getActions(actionType);
"animationActor_var" is a variable referencing an AnimationActor object.

// Uses no optional arguments.
returnValue = animationActor_var.getActions();

// Uses Optional arguments.
returnValue = animationActor_var.getActions(actionType);

Return Value

Type Description
AnimationAction[] Returns an array of AnimationAction objects associated with this animation actor or empty array if no action was found for the specified action type.

Parameters

Name Type Description
actionType AnimationActionTypes Optional specifies the type of the actions to retrieve. This defaults to AnimationActionTypes.NoneAnimationActionType indicating all the actions associated with this animation actor will be returned.

This is an optional argument whose default value is AnimationActionTypes.NoneAnimationActionType.

Version

Introduced in version November 2026