Verifies a mesh object has texture coordinates.
rhinoscriptsyntax.MeshHasTextureCoordinates (object_id)
rhinoscript.mesh.MeshHasTextureCoordinates (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.MeshHasTextureCoordinates(obj):
print "The mesh has texture coordinates."
else:
print "The mesh does not have texture coordinates."