# Get Pipeline Filename String

**URL:** https://discourse.paraview.org/t/get-pipeline-filename-string/3762
**Category:** ParaView Support
**Created:** [March 6, 2020, 3:51pm UTC](https://discourse.paraview.org/t/get-pipeline-filename-string/3762 "2020-03-06T15:51:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![avsd](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@avsd](https://discourse.paraview.org/u/avsd)
#### Post date: [March 6, 2020, 3:51pm UTC](https://discourse.paraview.org/t/get-pipeline-filename-string/3762/1 "2020-03-06T15:51:20Z")

</div>

Hi…I can’t seem to locate the python script function for accessing the filename of the currently selected Render View. I just want to access/print the text string of the filename…what is the python script command for that.  
This is an easy one I think…but my searches have come up empty so far.

I try to use this simple command, but it does not return the string filename:

> > > name=GetActiveView()  
> > > print(name)

output: \<paraview.servermanager.RenderView object at 0x7f91080c2990\>

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 9, 2020, 3:47am UTC](https://discourse.paraview.org/t/get-pipeline-filename-string/3762/2 "2020-03-09T03:47:38Z")

</div>

> the filename of the currently selected Render View

This does not make any sense. What could make sense is to want to recover the name of the file currently shown.

- Open ParaView
- Open your file, Apply
- Make sure that your file is highlighted (active) in the pipelinebrowser
- View-\>Python Shell

`GetActiveSource().FileName`

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 10, 2021, 6:25am UTC](https://discourse.paraview.org/t/get-pipeline-filename-string/3762/3 "2021-05-10T06:25:36Z")

</div>

A post was split to a new topic: [Get the filename in the python programmable filter.](https://discourse.paraview.org/t/get-the-filename-in-the-python-programmable-filter/7188)
