CanvasInput.opacity Property

Parent Object: CanvasInput
Defined in namespace "adsk::fusion" and the header file is <Fusion/Image/CanvasInput.h>

Description

Gets and sets the opacity of the canvas where 0 is completely transparent and 100 is completely opaque. Setting this property to a value outside the range of 0-100 will result in the value being set to the closest valid value.

Defaults to 50 when the input is created.

Syntax

"canvasInput_var" is a variable referencing a CanvasInput object.

# Get the value of the property.
propertyValue = canvasInput_var.opacity

# Set the value of the property.
canvasInput_var.opacity = propertyValue
"canvasInput_var" is a variable referencing a CanvasInput object.
#include <Fusion/Image/CanvasInput.h>

// Get the value of the property.
integer propertyValue = canvasInput_var->opacity();

// Set the value of the property, where value_var is an integer.
bool returnValue = canvasInput_var->opacity(value_var);

Property Value

This is a read/write property whose value is an integer.

Version

Introduced in version May 2023