# Camera commands in trace

**URL:** https://discourse.paraview.org/t/camera-commands-in-trace/11021
**Category:** Development
**Created:** [December 20, 2022, 1:40am UTC](https://discourse.paraview.org/t/camera-commands-in-trace/11021 "2022-12-20T01:40:46Z")
**Posts on this page:** 3
**Page:** 1

<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: [December 20, 2022, 1:40am UTC](https://discourse.paraview.org/t/camera-commands-in-trace/11021/1 "2022-12-20T01:40:46Z")

</div>

I know the trace recorder records the camera with camera position, focal point, view up and scale. Would it be possible, and would it be clearer, if we gave users the current roll/ putch/ yaw/ azimuth/ altitude in a trace?

An example of what we have is:  
renderView1.CameraPosition = [8.578210035538005, 49.900678928178365, -27.47846414137043]  
renderView1.CameraFocalPoint = [0.21706008911132804, 4.0, -5.110947132110596]  
renderView1.CameraViewUp = [-0.3150182020483825, -0.3687693998695668, -0.8745128141417048]  
renderView1.CameraParallelScale = 13.391445890217907

An example of what I want is:

renderView1.CameraFocalPoint = center of view  
renderView1.CameraAzimuth = [123.4567]  
renderView1.CameraAltitude = [-15]

Thanks

---

<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: [January 4, 2023, 10:21pm UTC](https://discourse.paraview.org/t/camera-commands-in-trace/11021/2 "2023-01-04T22:21:12Z")

</div>

@cory.quammen @mwestphal @dcthomp @utkarsh.ayachit Any ideas?

---

<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: [January 5, 2023, 1:23am UTC](https://discourse.paraview.org/t/camera-commands-in-trace/11021/3 "2023-01-05T01:23:45Z")

</div>

Alan,

It’s true that the currently recorded camera view up vector is not necessarily intuitive, and that the degree of roll/pitch/yaw may be easier to understand. However, if we did report that, it would have to be with respect to a canonical camera position (how many degrees from the original camera position is the roll, for example), and those angles might change depending on the order you record them. That’s all fine, but my point is there is some implicit info you need to make the rotations meaningful.

Note that you _can_ specify rotations by hand currently with

```auto
renderView1.AdjustAzimuth(5.0)
renderView1.AdjustElevation(10.0)
renderView1.AdjustRoll(3.0)

```

So if you initialize the camera to be centered and look down -Z, you can in your script achieve these rotations. I’m not entirely sold on the idea that that is how we should record them, however.
