Layer.RenderMaterialIndex Property

LayerRenderMaterialIndex Property

Gets or sets the index of render material for objects on this layer that have MaterialSource() == MaterialFromLayer. A material index of -1 indicates no material has been assigned and the material created by the default Material constructor should be used.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int RenderMaterialIndex { get; set; }
Public Property RenderMaterialIndex As Integer
	Get
	Set

Property Value

Type: Int32
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also