thanks. That gives me a place to start from :) On May 11, 2:37 am, Viktoras <[email protected]> wrote: > 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()) > > -- > Viktoraswww.neglostyti.com > > --http://groups.google.com/group/python_inside_maya
-- http://groups.google.com/group/python_inside_maya
