Verifies a mesh object has vertex colors.
rhinoscriptsyntax.MeshHasVertexColors (object_id)
rhinoscript.mesh.MeshHasVertexColors (object_id)
object_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a mesh", rs.filter.mesh)
if rs.mesh.MeshHasVertexColors(obj):
print "The mesh has vertex colors."
else:
print "The mesh does not have vertex colors."