MaterialAmbientColor

Syntax

<Path>.MaterialAmbientColor:integer

The attribute MaterialAmbientColor sets the ambient 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]).MaterialAmbientColor := makeRGBValue(0,0,255)

Related Topics

Edit 3D Properties > Tab Material > Ambient Color

MaterialActive

MaterialDiffuseColor

MaterialEmissiveColor

MaterialShininess

MaterialSpecularColor

MaterialTransparency