# Custom Preview Display in Python(Grasshopper)

**URL:** <https://discourse.mcneel.com/t/custom-preview-display-in-python-grasshopper/2767>\
**Category:** Scripting\
**Created:** [October 3, 2013, 2:13pm UTC](https://discourse.mcneel.com/t/custom-preview-display-in-python-grasshopper/2767 "2013-10-03T14:13:30Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [August 22, 2019, 10:13am UTC](https://discourse.mcneel.com/t/custom-preview-display-in-python-grasshopper/2767/10 "2019-08-22T10:13:41Z")

</div>

There is an example here, on how to override a preview method (`DrawViewportWires`) in SDK mode:

> [@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…

but somehow discourse is not showing the images anymore. I [asked why](https://discourse.mcneel.com/t/why-are-images-gone-here/87837). The code is still visible.

---

_[View the full topic](https://discourse.mcneel.com/t/custom-preview-display-in-python-grasshopper/2767)._
