MaterialDiffuseColor

Syntax

<Path>.MaterialDiffuseColor:integer

The attribute MaterialDiffuseColor sets the diffuse color of the graphic designated by <Path>.

Note:

You can only access the attribute if the material is active.

Note:

When you assign the attribute, Plant Simulation deactivates graphic inheritance.

Note:

You cannot assign the attribute when the graphic is an automatically generated graphic group or when the graphic is located in an automatically generated graphic group.

Data Type of the Value You Can Assign

You can assign a value of data type integer.

Example

MyStation._3D.getGraphic("default", [3,3]).MaterialDiffuseColor := makeRGBValue(255,0,0)

Related Topics

Edit 3D Properties > Tab Material > Diffuse Color

MaterialActive

MaterialAmbientColor

MaterialEmissiveColor

MaterialShininess

MaterialSpecularColor

MaterialTransparency