Component.material Property

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

Description

Gets and sets the physical material assigned to this component.

Syntax

"component_var" is a variable referencing a Component object.

# Get the value of the property.
propertyValue = component_var.material

# Set the value of the property.
component_var.material = propertyValue
"component_var" is a variable referencing a Component object.
#include <Fusion/Components/Component.h>

// Get the value of the property.
Ptr<Material> propertyValue = component_var->material();

// Set the value of the property, where value_var is a Material.
bool returnValue = component_var->material(value_var);

Property Value

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

Version

Introduced in version September 2015