# What can trigger Geometry Pipeline component refreshing?

**URL:** <https://discourse.mcneel.com/t/what-can-trigger-geometry-pipeline-component-refreshing/106497>\
**Category:** Grasshopper\
**Created:** [August 1, 2020, 3:28pm UTC](https://discourse.mcneel.com/t/what-can-trigger-geometry-pipeline-component-refreshing/106497 "2020-08-01T15:28:36Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [February 24, 2022, 9:08am UTC](https://discourse.mcneel.com/t/what-can-trigger-geometry-pipeline-component-refreshing/106497/8 "2022-02-24T09:08:18Z")

</div>

> [@efestwin](#):
>
> The script implements event handling. This is a complicated procedure in Python and the language is clearly not built for this, though it is still possible. As stated [here](https://discourse.mcneel.com/t/python-event-handling/46354/2) before, this job should usually be performed by a “real” GH-PlugIn.

FWIW, I’ve recently had success subscribing to events using the ` __enter__ ` / ` __exit__ ` methods available in GHPython when running in SDK mode (i.e. that I picked up from Steve and Giulio [over here](https://discourse.mcneel.com/t/draw-to-screen-space-foreground-from-drawviewportwires/113209)). While there still are hiccups involved (e.g. this example recomputes on changes to layers other than the input `Layer`) it has been behaving as expected/intended for production. And is a quite terse/simple solution IMO:

 ![MicrosoftTeams-image (3)](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/7/8/6787f24ba643108c1cacfc938c13f719f35a6446.png)  
[211028\_RecomputeOnRhinoEvents\_00 (1).gh](https://discourse.mcneel.com/uploads/short-url/t0e7cYjERuObPPagkPahnBBs7ma.gh) (4.1 KB)

---

_[View the full topic](https://discourse.mcneel.com/t/what-can-trigger-geometry-pipeline-component-refreshing/106497)._
