Verifies a material is referenced from another file.
Rhino.IsMaterialReference (intMaterialIndex)
intMaterialIndex |
Required. Number. The zero-based material index. |
Boolean |
True if successful, otherwise False. |
Null |
On error. |
Dim strObject, intIndex
strObject = Rhino.GetObject
If Not IsNull(strObject) Then
intIndex = Rhino.ObjectMaterialIndex(strObject)
If Rhino.IsMaterialReference(intIndex) Then
Rhino.Print "The material is referenced from another file."
Else
Rhino.Print "The material is not referenced from another file."
End If
End If