Message 1 of 3
Creating Container Node in Maya API C++?

Not applicable
03-12-2011
07:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to create a container node and add some nodes to it using Maya C++ API. I could not find anything related to containers in Maya document. Closest I got was MFnContainerNode which is a function set to work on container nodes, But how do I create one?
In Python I can do something like
Is there an equivalent in Maya C++ API? If not, any workarounds?
In Python I can do something like
maya.commands.container(name = "myContainer", addNode="some node 0", ihb=True)
maya.commands.container("myContainer", edit=True, addNode="some node 1" )
Is there an equivalent in Maya C++ API? If not, any workarounds?