Click or drag to resize

RenderMaterialImportMaterialAndAssignToLayers Method

Imports a material file (.RMTL) and assigns the imported material to one or more layers.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.0
Syntax
public static bool ImportMaterialAndAssignToLayers(
	RhinoDoc doc,
	string file,
	IEnumerable<int> layer_indices
)

Parameters

doc
Type: RhinoRhinoDoc
The document to attach the imported material to and which also contains the layers.
file
Type: SystemString
The full path to the RMTL file to be imported.
layer_indices
Type: System.Collections.GenericIEnumerableInt32
An array of indices of the layers to assign the material to.

Return Value

Type: Boolean
True if successful, else false.
See Also