# Displaying text with location based on points using Python Scripted Components

**URL:** <https://discourse.mcneel.com/t/displaying-text-with-location-based-on-points-using-python-scripted-components/47735>\
**Category:** Grasshopper\
**Tags:** rhinocommon, textentity, python, scripting\
**Created:** [September 26, 2017, 2:02am UTC](https://discourse.mcneel.com/t/displaying-text-with-location-based-on-points-using-python-scripted-components/47735 "2017-09-26T02:02:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![piac](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/piac/32/769366_2.png) [@piac](https://discourse.mcneel.com/u/piac)\
**Post date:** [September 26, 2017, 1:36pm UTC](https://discourse.mcneel.com/t/displaying-text-with-location-based-on-points-using-python-scripted-components/47735/2 "2017-09-26T13:36:10Z")

</div>

Rhino WIP has (and Rhino 6 will have) a GhPython component mode that allows to override most methods of GH\_Component, including DrawViewportMeshes.

A similar, but slightly simpler example is posted on this discussion, where DrawViewportWires is overridden (§ 5):

> [@GhPython add-on compiler with example](https://discourse.mcneel.com/t/ghpython-add-on-compiler-with-example/11307):
>
> Hi all, I would like to introduce the new GhPython compiler feature we are developing for Rhino in Serengeti. This is an early build, and it is the first time this is shown to the public, so some “rough edges” might still be there. Keep that into account. You are encouraged to write comments below here. I am also posting a example below here. Step by step example A component that shows a textdot relative to screen position (“billboard”). 1 We begin with a customary GhPython component. Pleas…

Please let me know if this is helpful,

Giulio

–  
Giulio Piacentino  
for Robert McNeel & Associates  
[giulio@mcneel.com](mailto:giulio@mcneel.com)

---

_[View the full topic](https://discourse.mcneel.com/t/displaying-text-with-location-based-on-points-using-python-scripted-components/47735)._
