Click or drag to resize

MaterialMaterialChannelIndexFromId Method

Finds index of the material channel that refers to a material channel with the given id. Optionally adds channel if one is not found.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int MaterialChannelIndexFromId(
	Guid material_channel_id,
	bool bAddIdIfNotPresent
)

Parameters

material_channel_id
Type: SystemGuid
Id
bAddIdIfNotPresent
Type: SystemBoolean
Controls whether to add channel if none exist

Return Value

Type: Int32
Index of the material channel
Version Information

Rhino for Windows

Supported in: 6.27
See Also