# How to access RenderView name in pvpython

**URL:** https://discourse.paraview.org/t/how-to-access-renderview-name-in-pvpython/16528
**Category:** ParaView Support
**Tags:** vtk, python
**Created:** [April 25, 2025, 3:21pm UTC](https://discourse.paraview.org/t/how-to-access-renderview-name-in-pvpython/16528 "2025-04-25T15:21:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mckel](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mckel/32/6435_2.png) [@mckel](https://discourse.paraview.org/u/mckel)
#### Post date: [April 25, 2025, 3:21pm UTC](https://discourse.paraview.org/t/how-to-access-renderview-name-in-pvpython/16528/1 "2025-04-25T15:21:56Z")

</div>

Hi all,

using pvpython, how do you access the custom name given to a view, e.g. a RenderView.

![image](https://discourse.paraview.org/uploads/default/optimized/3X/8/7/87405ef17f4824ac0b06c859b0a47adcdcd7006e_2_690x44.png)

In the shown snapshot, the layout was manually renamed to “MyLayout” and the view was renamed to “MyView”. With the following script, I would like to access the view name, here “MyView”.

```py
from paraview.simple import *

layouts = GetLayouts()
for i,l in enumerate(layouts):
    print("Layout name:", l[0]) # This prints "MyLayout"
    views = GetViewsInLayout(layouts[l])
    for j,v in enumerate(views):
        print("View name:", v.SMProxy.GetName()) # I want this to print "MyView"

```

This fails as there is no method `GetName()`, but using `GetLogName()` only returns “RenderView1”, etc. Is there a way to access the name shown in the GUI similar to the layout name?

Thank you in advance!

Regards,  
mckel

---

<div class="post-metadata">

### Author: ![mckel](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mckel/32/6435_2.png) [@mckel](https://discourse.paraview.org/u/mckel)
#### Post date: [April 28, 2025, 12:15pm UTC](https://discourse.paraview.org/t/how-to-access-renderview-name-in-pvpython/16528/2 "2025-04-28T12:15:58Z")

</div>

Based on [this discussion](https://discourse.paraview.org/t/get-view-name/3193/3), the following code using `servermanager.ProxyManager().GetProxyName(...)` function can be used:

```py
from paraview.simple import *

layouts = GetLayouts()
for i,l in enumerate(layouts):
    print("Layout name:", l[0]) # This prints "MyLayout"
    views = GetViewsInLayout(layouts[l])
    for j,v in enumerate(views):
        print("View name:", servermanager.ProxyManager().GetProxyName(v.SMProxy.GetXMLGroup(),v)) # This prints "MyView"

```
