Decal.opacity Property

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

Description

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

Defaults to 1.0 when the input is created.

Syntax

"decal_var" is a variable referencing a Decal object.

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

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

// Get the value of the property.
double propertyValue = decal_var->opacity();

// Set the value of the property, where value_var is a double.
bool returnValue = decal_var->opacity(value_var);

Property Value

This is a read/write property whose value is a double.

Version

Introduced in version September 2024