# How to rename textures

**URL:** https://discourse.paraview.org/t/how-to-rename-textures/13297
**Category:** ParaView Support
**Tags:** python
**Created:** [November 21, 2023, 10:15pm UTC](https://discourse.paraview.org/t/how-to-rename-textures/13297 "2023-11-21T22:15:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rpearson](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/dc4da7/32.png) [@rpearson](https://discourse.paraview.org/u/rpearson)
#### Post date: [November 21, 2023, 10:15pm UTC](https://discourse.paraview.org/t/how-to-rename-textures/13297/1 "2023-11-21T22:15:16Z")

</div>

Hi,

I’m creating a Python script to load textures and apply them to my model. What I figured out is that every textures I load are automatically named “ImageTexture1”, “ImageTexture2”, etc. Is it possible to rename them with a more significative name using Python? I couldn’t find documentation or examples about this.

The following show a texture loaded manually and others using my script below:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/8605e66886be4d9ea80463a482dddaec65a16d97.png)

```auto
from paraview.simple import *

model = GetActiveSource()
renderView1 = GetActiveViewOrCreate('RenderView')
modelDisplay = GetDisplayProperties(model, view=renderView1)

tex = CreateTexture('<path to my image file>')
modelDisplay.Texture = tex

```

Thank you

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [November 21, 2023, 11:13pm UTC](https://discourse.paraview.org/t/how-to-rename-textures/13297/2 "2023-11-21T23:13:45Z")

</div>

Welcome to the ParaView Discourse, @rpearson1!

You can use

```python
RenameProxy(tex, tex.GetXMLGroup(), "MyTexture")

```

to rename your textures.

---

<div class="post-metadata">

### Author: ![rpearson](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/dc4da7/32.png) [@rpearson](https://discourse.paraview.org/u/rpearson)
#### Post date: [November 22, 2023, 4:59pm UTC](https://discourse.paraview.org/t/how-to-rename-textures/13297/3 "2023-11-22T16:59:31Z")

</div>

Thank you it worked!
