# Python state file, filtername not saved

**URL:** https://discourse.paraview.org/t/python-state-file-filtername-not-saved/7074
**Category:** ParaView Support
**Created:** [April 26, 2021, 8:37am UTC](https://discourse.paraview.org/t/python-state-file-filtername-not-saved/7074 "2021-04-26T08:37:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xRaidor](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/x/858c86/32.png) [@xRaidor](https://discourse.paraview.org/u/xRaidor)
#### Post date: [April 26, 2021, 8:37am UTC](https://discourse.paraview.org/t/python-state-file-filtername-not-saved/7074/1 "2021-04-26T08:37:19Z")

</div>

Hello,

I want to automatize the creation of many threshold filters and discovered the python state file for my sake.  
My workflow:  
I already have an unstructured data set which I am working on:

- I have manually created threshold filters in the paraview gui.
- I renamed the threshold filters to my needs.
- I saved the state as a python state file (for easier later automatization)

Problem:  
When I am loading the said python state file, all custom names are replaced by default names (“threshold1, threshold2” etc.)

How can I save the names which I have given to the threshold filters?

#Tested with Paraview 5.6 and 5.6.2 on Win 10 and Centos7.2

---

<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: [April 26, 2021, 12:36pm UTC](https://discourse.paraview.org/t/python-state-file-filtername-not-saved/7074/2 "2021-04-26T12:36:57Z")

</div>

This is not supported in 5.6. 5.9 correctly preserves user-specified filter names when reloading. For 5.6, manually edit the state file to add `registrationName='...'` argument to each filter for example.

```auto
threshold1 = Threshold(registrationName="CustomName")

```
