Spireite
02-20-2007, 03:06 PM
Hi,
Ok, so when i create a locaotr in the api obviously it creates the locatorShapeNode and has transform node as a parent (i think).
MFnDagNode daLocator;
daLocator.create("CustomLocator");
this works and create both the custom locator node and the transform node, but if i do
daLocator.name()
it returns transform1, the dagNode function set is pointing to the transform node instead of the locator node.
How do i gain access to the actual locator node?? I think its something to do with hasChildren/hasParent but ive never used this before.
Any suggestions welcomed
Spireite
Ok, so when i create a locaotr in the api obviously it creates the locatorShapeNode and has transform node as a parent (i think).
MFnDagNode daLocator;
daLocator.create("CustomLocator");
this works and create both the custom locator node and the transform node, but if i do
daLocator.name()
it returns transform1, the dagNode function set is pointing to the transform node instead of the locator node.
How do i gain access to the actual locator node?? I think its something to do with hasChildren/hasParent but ive never used this before.
Any suggestions welcomed
Spireite
