Thanks for your reply Marcus,

There’s no need to post all of your code, the trick is providing a short 
reproduction of the problem, such that we can run it ourselves. The fact 
that you’re reading a JSON and are making a rig etc. is likely not related 
to the problem and can be left out. The code snippet I provided (for example
) isn’t actually part of anything I use in production, but rather is a 
condensed version highlighting the problem. Solving this condensed problem 
solves the problem in my production code.....

For create my template object I use many recursive function un many files. 
It's very dfficult to isolate code for reproduce a little exemple. I try to 
make this today.

I think a found a solution.
I replace MDGModifier by MDagModifier and now delete don't crash.
MDagModifier could use a MDagPath for retrieve MObject ?

-- 
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/ee26be41-2e45-42a4-a5f4-5d4fa6162279%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to