Maya API - mesh shape color overlay

Hi - Maybe someone could point me a right direction with this:
I want to make a plugin that will highlight parts of mesh just like the modelling toolkit does with faces/edges.
Can anyone give me any hint how to approach this? Anything - even one or two words :slight_smile:

You’ll need to look into the API docs but since version 2014 there are some methods like MUIDrawManager and MPxDrawOverride to do custom draws in the view port. Prior to that it gets a little hacky but you can just do immediate draws to the viewport, see OpenMayaUI.M3dView and OpenMayaRender.MHardwareRenderer.theRenderer()