According to the API docs (http://download.autodesk.com/us/maya/ 2009help/API/class_m_fn_generic_attribute.html) the version of MFnGenericAttribute.addAccept() you are trying to call has no Python script support. Also several commands are Deprecated. Try .addDataAccept()
On Feb 10, 8:58 pm, jasonosipa <jason.os...@gmail.com> wrote: > I'm working through converting qWrap over to Python. qWrap is a plugin > +source up on highend posted by someone going only by "Qarl" > > http://highend3d.com/maya/downloads/plugins/modeling/misc/4208.html > > Things are moving along pretty well so far, but I've run into > something I can't untangle. > > <snip> > > gAttr = om.MFnGenericAttribute() > qWrapNode.aTargetShapes = gAttr.create( 'targetShapes', 'ts' ) > gAttr.addAccept( om.MFnData.kMesh ) > gAttr.addAccept( om.MFnData.kNurbsSurface ) > > <\snip> > > The addAccept lines aren't taking. Any ideas? --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---