# Use different scalar arrays as texture coordinates

**URL:** https://discourse.paraview.org/t/use-different-scalar-arrays-as-texture-coordinates/1342
**Category:** ParaView Support
**Created:** [February 22, 2019, 7:23pm UTC](https://discourse.paraview.org/t/use-different-scalar-arrays-as-texture-coordinates/1342 "2019-02-22T19:23:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/banesullivan/32/11714_2.png) [@banesullivan](https://discourse.paraview.org/u/banesullivan)
#### Post date: [February 22, 2019, 7:23pm UTC](https://discourse.paraview.org/t/use-different-scalar-arrays-as-texture-coordinates/1342/1 "2019-02-22T19:23:54Z")

</div>

Is there an easy way to switch the array used for the texture coordinates to different point scalar arrays present in a dataset?

I have three sets of texture coordinates as scalar arrays on my `vtkPolyData` surface and I have three corresponding texture images. I’d like a simple way to switch between the active texture coordinates and texture images.

---

<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: [February 22, 2019, 8:26pm UTC](https://discourse.paraview.org/t/use-different-scalar-arrays-as-texture-coordinates/1342/2 "2019-02-22T20:26:54Z")

</div>

There is no filter or mechanism to do this. **Programmable Filter** is your friend here. Say you want to switch to a texture named “DifferentTexture”. Then your script would look like

```python
input = self.GetInput()
output = self.GetOutput()
output.ShallowCopy(input)
output.GetPointData().SetActiveTCoords('DifferentTexture')

```
