# including preset transfer function configuration in a Python Trace

**URL:** https://discourse.paraview.org/t/including-preset-transfer-function-configuration-in-a-python-trace/15034
**Category:** ParaView Support
**Tags:** python
**Created:** [July 10, 2024, 7:19pm UTC](https://discourse.paraview.org/t/including-preset-transfer-function-configuration-in-a-python-trace/15034 "2024-07-10T19:19:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [July 10, 2024, 7:19pm UTC](https://discourse.paraview.org/t/including-preset-transfer-function-configuration-in-a-python-trace/15034/1 "2024-07-10T19:19:08Z")

</div>

Hi,

I’m using PV 5.12 on a workstation and am using a preset transfer function to set up my visualization. I save this in a Python trace but when I use the generated script on another machine it doesn’t have the information for my requested transfer function. Is there a way to have this included in my generated Python trace script?

Thanks,  
Andy

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [July 10, 2024, 7:40pm UTC](https://discourse.paraview.org/t/including-preset-transfer-function-configuration-in-a-python-trace/15034/2 "2024-07-10T19:40:36Z")

</div>

Try tracing the Transform filter?

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [July 10, 2024, 8:20pm UTC](https://discourse.paraview.org/t/including-preset-transfer-function-configuration-in-a-python-trace/15034/3 "2024-07-10T20:20:49Z")

</div>

I created a custom transfer function for my volume viz. What I ended up doing was exporting the custom transfer function, copying it to the HPC machine, then added the custom transfer function with:

```auto
ImportPresets(filename=<path>, location=16)

```
