Thanks Chad. Simples... Long hours and too much coffee...
-Dave On Feb 16, 4:57 pm, Chad Vernon <[email protected]> wrote: > You have to do > mAttr.setDisconnectBehavior(OpenMaya.MFnAttribute.kDelete) > > On Tue, Feb 16, 2010 at 8:50 AM, thirstydevil <[email protected]>wrote: > > > Frak! > > > Tab committed the message... > > Thanks for your help. > > > Kind Regards > > David Moulder > > > On Feb 16, 4:47 pm, thirstydevil <[email protected]> wrote: > > > I've created a basic MPxNode node that has nothing in it but some > > > static attributes > > > > one of these attrs is a message array that I'm using to describe our > > > own metaData scenegraph. Basicaly a parent child relationship via the > > > connection direction. Everything is fine but I delete a node from the > > > connection the array isn't cleaned and a reference to the node is left > > > in the index. Am I using the right setting for this array. Or should > > > I override connectionMade() and do manual clean-up? > > > > This how I'm declaring the attr > > > > mAttr = OpenMaya.MFnMessageAttribute() > > > metaNode.metaLinks = mAttr.create( "metaLinks", "mLinks" ) > > > mAttr.setArray(1) > > > mAttr.setConnectable(1) > > > mAttr.setStorable(1) > > > mAttr.setWritable(1) > > > metaNode.addAttribute( metaNode.metaLinks ) > > > -- > >http://groups.google.com/group/python_inside_maya > > -- http://groups.google.com/group/python_inside_maya
