Querying rgb values inside a MPxLocatorNode for drawingOverride / overrideColor implementation

12 views
Skip to first unread message

fruit...@gmail.com

unread,
Dec 21, 2017, 4:10:02 PM12/21/17
to Python Programming for Autodesk Maya
Hi guys,

while working on a new MPxLocatorNode, I was wondering something :
how could I implement the drawingOverride (and more specifically the overrideColor) to my openGL drawing ? Since drawingOverride is inherited by the MPxLocatorNode class, we might have some handles inside the node, no ?
What I'm usually doing for that is querying the colorOverride value (an int from 0 to 31), and based on that, I pick the corresponding rgb value in an predefined array, then I feed my glColor with that... this looks pretty cumbersome.. is there a way to get the rgb value automatically, from maya directly ?

Thank you =]
Reply all
Reply to author
Forward
0 new messages