# How to get all the observers of a node?

**URL:** https://discourse.slicer.org/t/how-to-get-all-the-observers-of-a-node/19150
**Category:** Support
**Created:** [August 11, 2021, 6:15am UTC](https://discourse.slicer.org/t/how-to-get-all-the-observers-of-a-node/19150 "2021-08-11T06:15:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![slicer](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@slicer](https://discourse.slicer.org/u/slicer)
#### Post date: [August 11, 2021, 6:15am UTC](https://discourse.slicer.org/t/how-to-get-all-the-observers-of-a-node/19150/1 "2021-08-11T06:15:12Z")

</div>

Operating system: Windows  
Version: 4.11

How to get all the observers of a node?

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [August 11, 2021, 1:21pm UTC](https://discourse.slicer.org/t/how-to-get-all-the-observers-of-a-node/19150/2 "2021-08-11T13:21:11Z")

</div>

The observers aren’t really meant to be operated on externally because they don’t have any well defined meaning except to the code that added them. That is, when one piece of code adds an observer it provides a C++ vtkCommand instance or python callable but these are opaque to any other part of the codebase. Each module should keep track of the observations it adds so that it can cleanly remove them when needed (`AddObserver` returns a tag that uniquely identifies the observer for that observed `vtkObject`)
