Share

Material.name Property

Parent Object: Material
Defined in namespace "adsk::core" and the header file is <Core/Materials/Material.h>

Description

Returns the name of this Material. This is the name of the material as seen in the user interface. The name can only be edited if the material is in a Design or the favorites list.

Syntax

"material_var" is a variable referencing a Material object.

# Get the value of the property.
propertyValue = material_var.name

# Set the value of the property.
material_var.name = propertyValue

Property Value

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

Version

Introduced in version August 2014

Was this information helpful?