On 2010.05.11 06:48, Brandon Harris wrote:
         u = openMaya.MScriptUtil().asIntPtr()
         v = openMaya.MScriptUtil().asIntPtr()
         compItr.getIndex(u,v)
         compList.append([(pathName + ".cv[%s][%s]")%
(openMaya.MScriptUtil().getInt(u),openMaya.MScriptUtil().getInt(v))])
this was never intended to be a correct usage of MScriptUtil, you should not save instances of "asPtr" return values.
instead, you save instance of MScriptUtil, e.g.

u=om.MScriptUtil()

then pass asPtr value to functions

compItr.getIndex(u.asIntPtr(),v.asIntPtr())

then retreive the value with

om.MScriptUtil.getInt(u.asIntPtr())

--
Viktoras
www.neglostyti.com

--
http://groups.google.com/group/python_inside_maya

Reply via email to