A Python version with Point support.
Much slower than the pure SOP and HDK approaches…difference may be largely unnoticeable unless you're feeding it to very dense geometry, and making changes upstream. It would certainly benefit a lot from inline CPP or Vex, but these are still on my rainy day list.
Add custom display options for attributes Ps (Point, text) and Ec (Prim, text) to get numbering.
Sadly, it seems sprites outside of POP networks can only be rendered in Mantra, so point representations are a no-go, outside the HDK at least…if anyone thinks I'm wrong about that, please let me know.
Also, you can only visualise Point or Prim coloring, not both at the same time, for obvious reasons!
Attached zip contains both test scene + .otl
It's not the most elegant coding, so feel free to point out the errors in my ways