huxy
02-15-2009, 12:33 PM
Hey everyone,
I’m in the middle of coding a C++ plugin for Maya 8.5 using Visual Studio 2005. I’m using the dag and the dg modifiers to create nodes. At the same time I’m trying to utilise the redo and undo capabilities of the modifiers instead of needing to create my own custom functionality.
However I often need to create connections between dag and dg nodes but I find that I have to call dgMod.doit() and dagMod.doit() to create the respective nodes, before I can create the connections which in turn makes the undo/redo functionality more difficult to manage.
What I’m wondering is, is if there is a way that I can just use the dag modifier to create both dag nodes and non-dag nodes. Is this possible? I get the feeling from my testing that it isn’t?
Thanks in advance!
I’m in the middle of coding a C++ plugin for Maya 8.5 using Visual Studio 2005. I’m using the dag and the dg modifiers to create nodes. At the same time I’m trying to utilise the redo and undo capabilities of the modifiers instead of needing to create my own custom functionality.
However I often need to create connections between dag and dg nodes but I find that I have to call dgMod.doit() and dagMod.doit() to create the respective nodes, before I can create the connections which in turn makes the undo/redo functionality more difficult to manage.
What I’m wondering is, is if there is a way that I can just use the dag modifier to create both dag nodes and non-dag nodes. Is this possible? I get the feeling from my testing that it isn’t?
Thanks in advance!
