CustomGraphicsMesh.color Property

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

Description

Gets and sets the current color definition for this entity. The color of custom graphics can be defined in many ways; solid color, simple material, and appearance.

Syntax

"customGraphicsMesh_var" is a variable referencing a CustomGraphicsMesh object.

# Get the value of the property.
propertyValue = customGraphicsMesh_var.color

# Set the value of the property.
customGraphicsMesh_var.color = propertyValue
"customGraphicsMesh_var" is a variable referencing a CustomGraphicsMesh object.
#include <Fusion/Graphics/CustomGraphicsMesh.h>

// Get the value of the property.
Ptr<CustomGraphicsColorEffect> propertyValue = customGraphicsMesh_var->color();

// Set the value of the property, where value_var is a CustomGraphicsColorEffect.
bool returnValue = customGraphicsMesh_var->color(value_var);

Property Value

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

Version

Introduced in version September 2017