Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Another missing member found in my now-series of missing members, this time turning our attention to MDGModifier whose documentation says..
> Note: If includeParents is true then empty parents of the DAG node will be included in the delete operation. Pass false to only delete this node.
But whose header file only contains the function without includeParents. 😞
// maya2020/MDGModifier.h line 114
MStatus deleteNode( const MObject & node );
This does however exist in the Python API 2.0.
from maya.api import OpenMaya as om
om.MDGModifier().deleteNode(someNode, includeParents=False)
Solved! Go to Solution.