Hi all,

I trying too to delete a node. But I have a crash on doIt of MDGModifier
>From what I read here, the reason would come from the management of 
pointers...

But I don't know how to fix that or convert to exception.
My process create many nodes. When I want to delete root of one of them 
maya have brutal crash

Here is my code:
#   Delete node
mdg_mod = OpenMaya.MDGModifier()
for moh_node in self.a_roots:
    if moh_node.isValid() is False:
        continue
    mdg_mod.deleteNode(moh_node.object())
mdg_mod.doIt()
del mdg_mod

I Use MObjectHandle and my node is valid and alive. I have a same problem 
on removeAttribute of MFnDependencyNode.
I try to set undo to false. When undo is false delete node works as long as 
outliner is not opened. When I open outliner maya crash...

You have any solution ?

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/1e10760b-b977-4d7f-a088-3132d46d6b0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to