Notifications
Clear all

[Closed] ProgressBar kills Ability To Read Verts From An Edit Poly

Max 2014, this is a weird one. Make an object, say a cube, collapse to editablepoly, then run this code:

progressStart "test"
obj = $					
addmodifier obj (Edit_Poly())
myMod = obj.modifiers[1]
numVerts = myMod.GetNumVertices()
print numVerts
progressEnd()

It will return 0, even though your cube has vertexes. Now run this code:

obj = $					
addmodifier obj (Edit_Poly())
myMod = obj.modifiers[1]
numVerts = myMod.GetNumVertices()
print numVerts

It properly returns the number of vertexes. Why is the progress bar killing the ability to read the number of verts from an edit poly?

  • Neil