mike15
(Mike)
1
While calling isMesh() I get the error: 'module' object has no attribute 'isMesh'
import rhinoscriptsyntax as rs
def SplitJoinedMeshes():
lastObjectCount = -1
objectCount = 0
while lastObjectCount != objectCount:
aObjects = rs.AllObjects()
lastObjectCount = objectCount
objectCount = len(aObjects)
for obj in aObjects:
print rs.ObjectType(obj)
if rs.isMesh(obj):
rs.SplitBrep(obj)
scriptcontext.doc.Views.Redraw()
if __name__ == "__main__":
SplitJoinedMeshes()
Why is this happening? The print statement above my call to isMesh()
returns 32, which indicates a mesh. I am using Rhino 7.
piac
(Giulio Piacentino)
2
Hello @mike15,
check out the capitalization - case. It’s called IsMesh
.
Thanks,
Giulio
–
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
mike15
(Mike)
3
Yup. I knew it was going to be something simple.