Returns the index of a material given the material's identifier.
Rhino.MaterialIndex (strMaterial)
strMaterial |
Required. String. The identifier of an existing material. |
Number |
The material's index if successful. |
Null |
If not successful, or on error. |
Dim arrMaterials, strMaterial
arrMaterials = Rhino.MaterialIds
If IsArray(arrMaterials) Then
For Each strMaterial In arrMaterials
Rhino.Print Rhino.MaterialIndex(strMaterial)
Next
End If