Click or drag to resize

MaterialTableModify Method

Modify material settings.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool Modify(
	Material newSettings,
	int materialIndex,
	bool quiet
)

Parameters

newSettings
Type: Rhino.DocObjectsMaterial
This information is copied.
materialIndex
Type: SystemInt32
zero based index of material to set. This must be in the range 0 <= layerIndex < MaterialTable.Count.
quiet
Type: SystemBoolean
if true, information message boxes pop up when illegal changes are attempted.

Return Value

Type: Boolean
true if successful. false if materialIndex is out of range or the settings attempt to lock or hide the current material.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also