Hey guys,

I'm converting an old custom node to render with viewport 2.0 but don't 
know how do figure out if the node is active (selected) or not. In the 
legacy render in the draw function your could do this:

draw( M3dView & view, const MDagPath & path, 
 M3dView::DisplayStyle dispStyle,
 M3dView::DisplayStatus status )
{
...
    switch (status)
  {
      case M3dView::kActive:
          // rendering for when node i active
      default:
          // Default rendering
   }
...
}

There doesn't seem to be a way of getting the "status" 
in MHWRender::MPxDrawOverride.addUIDrawables().
Sorry this is c++ code but the question applies to maya python api too.

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/9cf9c68d-5709-4e24-90c6-9347e22a5dd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to