AnimationVideoInput.setVideoResolution Method

Parent Object: AnimationVideoInput

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

Description

Method that sets the video resolution.

Syntax

"animationVideoInput_var" is a variable referencing an AnimationVideoInput object.

# Uses no optional arguments.
returnValue = animationVideoInput_var.setVideoResolution(videoSizeType)

# Uses optional arguments.
returnValue = animationVideoInput_var.setVideoResolution(videoSizeType, width, height)
"animationVideoInput_var" is a variable referencing an AnimationVideoInput object.

#include <Fusion/Animation/AnimationVideoInput.h>

// Uses no optional arguments.
returnValue = animationVideoInput_var->setVideoResolution(videoSizeType);

// Uses optional arguments.
returnValue = animationVideoInput_var->setVideoResolution(videoSizeType, width, height);
"animationVideoInput_var" is a variable referencing an AnimationVideoInput object.

// Uses no optional arguments.
returnValue = animationVideoInput_var.setVideoResolution(videoSizeType);

// Uses Optional arguments.
returnValue = animationVideoInput_var.setVideoResolution(videoSizeType, width, height);

Return Value

Type Description
boolean Returns true if the video resolution was successfully set.

Parameters

Name Type Description
videoSizeType VideoSizeTypes Specifies the video size type. When the videoSizeType is set to VideoSizeTypes.CustomVideoSizeType, the width and height parameters will be used to set the custom video size.
width uinteger Specifies the width of the video in pixels when the videoSizeType is set to VideoSizeTypes.CustomVideoSizeType. This is ignored if the videoSizeType argument is not specified as VideoSizeTypes.CustomVideoSizeType.

This is an optional argument whose default value is 0.
height uinteger Specifies the height of the video in pixels when the videoSizeType is set to VideoSizeTypes.CustomVideoSizeType. This is ignored if the videoSizeType argument is not specified as VideoSizeTypes.CustomVideoSizeType.

This is an optional argument whose default value is 0.

Version

Introduced in version November 2026