MeshHasVertexColors

Verifies a mesh object has vertex colors.

Syntax

rhinoscriptsyntax.MeshHasVertexColors (object_id)

rhinoscript.mesh.MeshHasVertexColors (object_id)

Parameters

object_id

Required.  String or Guid.  The object's identifier.

Returns

Boolean

True if successful, otherwise False.

Example

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."

Also See

MeshVertexColors