I was just about to reply, pointing this out. That said, I’d recommend overriding the DrawViewportMeshes
and DrawViewportWires
methods instead. It’s arguably simpler and enables you to call all the methods in the DisplayPipeline
(i.e. unlike CustomDisplay
):
And a GHPython example here: