jackinoob
06-27-2006, 09:50 PM
Hi all,
I am designing a custom node with API, which depending on certain factors, would need to create and maintain built-in maya nodes (i.e joint) as part of its operation. I tried doing this in the compute function of my custom node, using :
MDagModifier dagMod;
MObject prim = dagMod.createNode("joint");
This does nothing however. From my research, I've seen uses of MDGModifier and MDagModifier in the doit functions of commands. Can this be used properly within the compute of a custom node? Or is there another way to accomplish this?
please help my node confusion! Thanks.
I am designing a custom node with API, which depending on certain factors, would need to create and maintain built-in maya nodes (i.e joint) as part of its operation. I tried doing this in the compute function of my custom node, using :
MDagModifier dagMod;
MObject prim = dagMod.createNode("joint");
This does nothing however. From my research, I've seen uses of MDGModifier and MDagModifier in the doit functions of commands. Can this be used properly within the compute of a custom node? Or is there another way to accomplish this?
please help my node confusion! Thanks.
