MaterialPreferences.defaultMaterial Property

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

Description

Gets and sets the default material.

Syntax

"materialPreferences_var" is a variable referencing a MaterialPreferences object.

# Get the value of the property.
propertyValue = materialPreferences_var.defaultMaterial

# Set the value of the property.
materialPreferences_var.defaultMaterial = propertyValue
"materialPreferences_var" is a variable referencing a MaterialPreferences object.
#include <Core/Application/MaterialPreferences.h>

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

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

Property Value

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

Version

Introduced in version August 2014