# How can I change the center of rotation for mouse interaction?

**URL:** https://discourse.paraview.org/t/how-can-i-change-the-center-of-rotation-for-mouse-interaction/7335
**Category:** Web Support
**Tags:** web
**Created:** [June 1, 2021, 1:16pm UTC](https://discourse.paraview.org/t/how-can-i-change-the-center-of-rotation-for-mouse-interaction/7335 "2021-06-01T13:16:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lbs1163](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/a587f6/32.png) [@lbs1163](https://discourse.paraview.org/u/lbs1163)
#### Post date: [June 1, 2021, 1:16pm UTC](https://discourse.paraview.org/t/how-can-i-change-the-center-of-rotation-for-mouse-interaction/7335/1 "2021-06-01T13:16:58Z")

</div>

Hello, I’m currently using ‘paraviewweb/src/NativeUI/Canvas/RemoteRenderer’ from paraviewweb@3.2.13

I found out that if I drag the viewer with holding shift, I can move view with translation.  
However, the center of rotation remains with (0, 0, 0) I think.

Can I change the center of rotation to the center of the current camera view?  
Or should I modify or add new methods to handle this?

Thank you 🙂

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [June 1, 2021, 1:56pm UTC](https://discourse.paraview.org/t/how-can-i-change-the-center-of-rotation-for-mouse-interaction/7335/2 "2021-06-01T13:56:46Z")

</div>

You can use the `Pick Center of Rotation` button ![pqPickCenter](https://discourse.paraview.org/uploads/default/original/2X/3/3855b22a79c461abf61291f51b1c8b7b5d41c967.svg). It is located in the middle toolbar all the way to the right. Once you click that, you can click somewhere in the 3D view to change the center of rotation to that part of the geometry.

If you want to specify a specific coordinate, you can use the `Adjust Camera` button ![pqEditCamera](https://discourse.paraview.org/uploads/default/original/2X/f/fd00242174fff5d07e91d8f6afe8b5dd77c09f37.svg). This is located in that thin toolbar right above the 3D view (5th from the left). When you click that, you get a dialog box that allows you to specify a center of rotation.

---

<div class="post-metadata">

### Author: ![lbs1163](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/a587f6/32.png) [@lbs1163](https://discourse.paraview.org/u/lbs1163)
#### Post date: [June 5, 2021, 3:39pm UTC](https://discourse.paraview.org/t/how-can-i-change-the-center-of-rotation-for-mouse-interaction/7335/3 "2021-06-05T15:39:32Z")

</div>

Thanks for your reply but my problem was about using paraviewweb remote renderer.

Can I get some API information for selecting center of the rotation?

---

<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: [June 7, 2021, 4:46pm UTC](https://discourse.paraview.org/t/how-can-i-change-the-center-of-rotation-for-mouse-interaction/7335/4 "2021-06-07T16:46:52Z")

</div>

@jourdain

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [June 7, 2021, 4:55pm UTC](https://discourse.paraview.org/t/how-can-i-change-the-center-of-rotation-for-mouse-interaction/7335/5 "2021-06-07T16:55:50Z")

</div>

You will indeed need to create a new method on the server to use your current focal point as center of rotation. Such method could be done automatically on your app or via a button click.

```auto
@exportRpc('reset.center')
def resetCenter(self):
   view = simple.GetRenderView()
   view.CenterOfRotation = view.CameraFocalPoint

```
