# Custom viewpoints managed with script

**URL:** https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251
**Category:** ParaView Support
**Tags:** python
**Created:** [May 19, 2021, 8:28am UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251 "2021-05-19T08:28:35Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![SylvainR](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/e480ec/32.png) [@SylvainR](https://discourse.paraview.org/u/SylvainR)
#### Post date: [May 19, 2021, 8:28am UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251/1 "2021-05-19T08:28:35Z")

</div>

Hi, I want to manage custom viewpoints with python script.  
Start Trace does not record such operations.

Context :  
I have a pre-recorded custom viewpoints file (.pvcvcb) somewhere. It was recorded by clicking.  
I want to load it with a script, and select alternatively one or more custom viewpoints defined in it (with script as well)

![image](https://discourse.paraview.org/uploads/default/original/2X/4/46c698fdab8621c22cffd4900d32204c9906aca6.png)  
_Extract of window for custom viewpoint definition by clicking_

I have searched on google and Paraview website without finding such information. There are some functions like SetActiveView() but there are missing some to do the full job.

Thank you in advance for your suggestions. Best regards,

Sylvain

---

<div class="post-metadata">

### Author: ![John\_P](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@John\_P](https://discourse.paraview.org/u/John_P)
#### Post date: [October 29, 2021, 4:39am UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251/2 "2021-10-29T04:39:48Z")

</div>

Hi,

I’m looking to do the same thing. I would like to write a for-loop to cycle through the viewpoints I have set-up. As you say there doesn’t seem to be any info on how to control them from a python script other than explicitly stating the xyz components of the Camera properties from a recorded script.

Did you find a solution?

Thanks

---

<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: [October 29, 2021, 8:25am UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251/3 "2021-10-29T08:25:47Z")

</div>

VIewpoints are not controllable (yet) from python sadly

---

<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: [October 29, 2021, 3:30pm UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251/4 "2021-10-29T15:30:15Z")

</div>

@cory.quammen @utkarsh.ayachit @mwestphal How useful do you think this would be? Currently, when you trace a saved viewpoint, the camera location gets saved. (I didn’t look what happen when you go back to a saved viewpoint). Is saving the camera location good enough, or do we actually need to be able to save the viewpoint? Btw, I have never seen this request from my users.

---

<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: [October 29, 2021, 5:46pm UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251/5 "2021-10-29T17:46:07Z")

</div>

Stay tuned, we have a plan in the next year to implement something related in Python scripting that might fill the bill.

---

<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: [October 29, 2021, 7:26pm UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251/6 "2021-10-29T19:26:04Z")

</div>

Thanks Cory. OK to do it on my nickel.

---

<div class="post-metadata">

### Author: ![John\_P](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@John\_P](https://discourse.paraview.org/u/John_P)
#### Post date: [November 3, 2021, 6:25am UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251/7 "2021-11-03T06:25:57Z")

</div>

Ok, thanks all - look forward to the update.

---

<div class="post-metadata">

### Author: ![SylvainR](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/e480ec/32.png) [@SylvainR](https://discourse.paraview.org/u/SylvainR)
#### Post date: [November 3, 2021, 8:22am UTC](https://discourse.paraview.org/t/custom-viewpoints-managed-with-script/7251/8 "2021-11-03T08:22:05Z")

</div>

Hello, I was not very active on this topic but I am glad to see that new features will come. Thanks to Paraview Team for taking it into account. Have a good day.
