QUOTE(12Monkey @ 03/15/07, 12:05 AM) [snapback]262177[/snapback]
sorry I cant answer your question, i'm really a noob in MAYA API.
But I really want to know how did you make your compound Attribute which include locator's existed attribute,
As Rob said, I use MFnCompoundAttribute to compound all attributes...
CODE
MFnCompoundAttribute compFn;
locatorAttr = compFn.create("locatorAttrs", "locAttr", &stat);
// Create child attributes
//
MFnNumericAttribute nAttr;
radiusAttr = nAttr.create("radius", "r", MFnNumericData::kDouble, 5.0, &stat);
forceAttr = nAttr.create("force", "f", MFnNumericData::kDouble, 1.0, &stat);
// Add child attributes to the the parent attribute
//
compFn.addChild(typeAttr);
compFn.addChild(radiusAttr);
// Add attributes to node
addAttribute(typeAttr);
addAttribute(radiusAttr);
addAttribute(locatorAttr);
QUOTE(12Monkey @ 03/15/07, 12:05 AM) [snapback]262177[/snapback]
did you make a dynamic compound attribute on a existed locator or did you make your own locator which should derive from MPxLocatorNode??
Thanks in advance. ![]()
In my case, I make my own locator derived from MPxLocatorNode.
Since I want to connect my LocatorNode to my DeformerNode by one compound attribute only.
Therefore, I compound all attributes in LocatorNode and DeformerNode respectively, and all the child attributes in these two nodes are created in the same order...
Hope this helps
Ryan