# how to fix the view after I change the focus of the camera

**URL:** <https://discourse.vtk.org/t/how-to-fix-the-view-after-i-change-the-focus-of-the-camera/16091>\
**Category:** Development\
**Tags:** code\
**Created:** [October 11, 2025, 7:44am UTC](https://discourse.vtk.org/t/how-to-fix-the-view-after-i-change-the-focus-of-the-camera/16091 "2025-10-11T07:44:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sophia](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@sophia](https://discourse.vtk.org/u/sophia)\
**Post date:** [October 11, 2025, 7:44am UTC](https://discourse.vtk.org/t/how-to-fix-the-view-after-i-change-the-focus-of-the-camera/16091/1 "2025-10-11T07:44:47Z")

</div>

Dear all,

i have a issue that the view need to ratate around by the point mouse clicked. i set the point to the camera‘s focus .so the view is exactly rotating the point ,but the change of focus also caused the center of the view changed , so all the models relative positions in the view had changed.  
I wanted to fix the view even after I change the focus of the camera. how to fix the view after I change the focus of the camera.

I looking forward to your reply!

BestReagrds,

sophia

---

<div class="post-metadata">

**Author:** ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)\
**Post date:** [October 13, 2025, 11:24am UTC](https://discourse.vtk.org/t/how-to-fix-the-view-after-i-change-the-focus-of-the-camera/16091/2 "2025-10-13T11:24:11Z")

</div>

Hello,

As far as I understand the logic of a camera, if you shift the camera’s focus, the view changes accordingly, yes? Like, if you turn your head left, you see the stuff to your left. This is sort of the expected behavior. Either this or I didn’t quite understand what you want. Are you trying to rotate just the selected actor about its center?

best,

PC

---

<div class="post-metadata">

**Author:** ![sophia](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@sophia](https://discourse.vtk.org/u/sophia)\
**Post date:** [October 20, 2025, 2:29am UTC](https://discourse.vtk.org/t/how-to-fix-the-view-after-i-change-the-focus-of-the-camera/16091/3 "2025-10-20T02:29:50Z")

</div>

Dear Paulo，

thank you for your reply.  
i want to rotate around the mouse click point , but when the mouse click down, all actors int the scene don’t change their relative positions.  
if i only rotate the camera，don’t change focus，it couldn‘t finish the above function.

Best Regards  
Yanling.luo

在 2025-10-13 19:24:12，“Paulo Carvalho via VTK” [noreply@discourse.vtk.org](mailto:noreply@discourse.vtk.org) 写道：

---

<div class="post-metadata">

**Author:** ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)\
**Post date:** [October 20, 2025, 7:52pm UTC](https://discourse.vtk.org/t/how-to-fix-the-view-after-i-change-the-focus-of-the-camera/16091/4 "2025-10-20T19:52:30Z")

</div>

> [@sophia](#):
>
> all actors int the scene don’t change their relative positions.

This is expected, isn’t it? Do you want to move one actor? The one that you clicked on?
