# Get View Name

**URL:** https://discourse.paraview.org/t/get-view-name/3193
**Category:** ParaView Support
**Tags:** python
**Created:** [December 16, 2019, 7:06pm UTC](https://discourse.paraview.org/t/get-view-name/3193 "2019-12-16T19:06:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [December 16, 2019, 7:06pm UTC](https://discourse.paraview.org/t/get-view-name/3193/1 "2019-12-16T19:06:50Z")

</div>

Is there a way to associate views with their registration names?

I was hoping for something similar to how with sources you can do `GetSources()`

Or perhaps there’s some kind of `RegistrationName` attribute somewhere that I’m missing?  
(If this doesn’t exist, I think it would be useful for all objects - sources, filters, views, etc.)

Thanks,  
Ted

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [December 16, 2019, 7:12pm UTC](https://discourse.paraview.org/t/get-view-name/3193/2 "2019-12-16T19:12:02Z")

</div>

The more I think about it the more I’m surprised it doesn’t exist (if that’s the case, I’m not ruling out my own lack of education)

You can specify registration name as a keyword argument  
e.g. `sphere = Sphere(registrationName='SphereA')`  
So I would assume that keyword argument/value pair would be saved somewhere attached to the proxy object

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [December 16, 2019, 9:11pm UTC](https://discourse.paraview.org/t/get-view-name/3193/3 "2019-12-16T21:11:46Z")

</div>

```python
def GetViewName(view):
   pxm = servermanager.ProxyManager()
   return pxm.GetProxyName("views", view)

views = GetViews()
for view in views:
   print ("view name is", GetViewName(view))
   

```

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [December 16, 2019, 9:12pm UTC](https://discourse.paraview.org/t/get-view-name/3193/4 "2019-12-16T21:12:44Z")

</div>

Awesome. Thank you!

Interestingly, `GetProxyName` doesn’t appear when you do `dir(pxm)` or when you autocomplete.

I feel like I’ve come across this with several methods in ParaView. What’s up with that?
