mtuttle
I've been trying to figure out how to make a transform node that has it's own draw procedure like joints or ikHandles, but it doesn't seem to a direct API module, class, or function to do that. Are the transforms with their own gl shapes something that's engrained in the Maya application itself, or is it possible to create custom ones as a plugin?
pshipkov
They are derived from the transform class, but have extra bits. I don't think this functionality is exposed in the API, but what is there is good enough - basically build something on top of MPxLocatorNode class and parent it under transofrm, joint or other top-level element.
Reply 0 0
mtuttle
I would do that, but I want the attributes to be initialized on the transform, not it's shape (where animators wouldn't naturally go to look for them)...
Reply 0 0
pshipkov
i think the best solution is to overload the post constructor method with code that finds the parent xform of your shape node, check if control attributes exist on it and if not create and connect them to the control attribs of your node.
Reply 0 0
Reply