I tryed your solution

from maya.api import OpenMaya as
om
fn = om.MFnDagNode()
mobj = om.MObjectHandle(fn.create("transform"))
mobj.isAlive()
# True
fn.name()
# u'transform3'
mod = om.MDGModifier()
mod.deleteNode(mobj.object())
mod.doIt()
mobj.isAlive()
del mod
fn.name()
# ''
mobj.isAlive()
# False

and I have a crash.
But MDagModifier works very well

-- 
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/084e1164-6577-4196-8df4-f01c369a6309%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to