problems with maya python api 1.0 MPxGeometryIterator -
i'm writing custom curve maya python api 1.0 , got stuck mpxgeometryiterator:
//error: line 1: typeerror: file ..\maya\openmayampx.py line 1092: in method 'mpxgeometryiterator_isdone', argument 1 of type 'mpxgeometryiterator const*' //
inside shape call iterator:
def geometryiteratorsetup(self, componentlist, components, forreadonly = false): if components.isnull(): result = asmi.autosplinemovableiterator(self, componentlist) else: result = asmi.autosplinemovableiterator(self, components) return result
this have far iterator, maya crashes gets called
class autosplinemovableiterator(openmayampx.mpxgeometryiterator): def __init__(self, usergeometry, components): super(autosplinemovableiterator, self).__init__(usergeometry, components) self.geometry = usergeometry self.reset() def reset(self): openmayampx.mpxgeometryiterator.reset(self) self.currentpoint = 0 if self.geometry: maxvertex = self.geometry.pointcount() self.maxpoints = maxvertex def point(self): pnt = openmaya.mpoint() if self.geometry: pnt = self.geometry.point(self.index()) return pnt def setpoint(self, pnt): if self.geometry: self.geometry.setpoint(self.index(), pnt) def iteratorcount(self): if self.geometry: return self.geometry.pointcount() return 0 def haspoints(self): return true
i'm not quite sure i'm doing wrong. passing wrong arguments?
Comments
Post a Comment