# Helping script ways to set a view in a non-axis aligned direction

**URL:** https://discourse.paraview.org/t/helping-script-ways-to-set-a-view-in-a-non-axis-aligned-direction/5007
**Category:** ParaView Support
**Created:** [July 31, 2020, 7:25pm UTC](https://discourse.paraview.org/t/helping-script-ways-to-set-a-view-in-a-non-axis-aligned-direction/5007 "2020-07-31T19:25:17Z")
**Posts on this page:** 1
**Showing post:** 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 31, 2020, 7:25pm UTC](https://discourse.paraview.org/t/helping-script-ways-to-set-a-view-in-a-non-axis-aligned-direction/5007/1 "2020-07-31T19:25:17Z")

</div>

Is there a convenient way to script looking in a pre-specified view direction that’s not axis aligned? This is coming up a decent number of times with my users. As an example, a user is clipping some data and wants to look in the normal direction to what they clipped. Typically the script goes something like this:

> view = GetActiveView()  
> whereStuffIsAt = view.CameraFocalPoint  
> cameraPosition = whereStuffIsAt + 1000\*  
> view.CameraPosition = cameraPosition  
> ResetCamera()

Having something automated to help with that would be a nice feature. Maybe something like `FitToScreen(view, viewDirection, viewUp)`, but I’m sure someone will think of something better…

---

_[View the full topic](https://discourse.paraview.org/t/helping-script-ways-to-set-a-view-in-a-non-axis-aligned-direction/5007)._
