# How to freeze an actor in the render and not rotate with the other actors.

**URL:** https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871
**Category:** Support
**Created:** [May 27, 2021, 6:45am UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871 "2021-05-27T06:45:15Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![JAHDv](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jahdv/32/3425_2.png) [@JAHDv](https://discourse.vtk.org/u/JAHDv)
#### Post date: [May 27, 2021, 6:45am UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871/1 "2021-05-27T06:45:15Z")

</div>

Hi, is there any mechanism to tell the render/Actor not to update the position of an actor inside the render when I rotate?

For example, I have 8 sphere actors forming a cube (one sphere per vertex) when I rotate the scene, each sphere stays in its vertex keeping the cube structure intact. Is there a way to tell one of those spheres not to rotate together with the rest? i.e. to stay still where it was and therefore the cube would remain without one of the spheres in its vertices when I rotate it.

thx!

---

<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: [May 28, 2021, 12:03pm UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871/2 "2021-05-28T12:03:03Z")

</div>

Hello,

Do you mean rotation of the scene with the mouse or with a transform?

regards,

Paulo

---

<div class="post-metadata">

### Author: ![JAHDv](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jahdv/32/3425_2.png) [@JAHDv](https://discourse.vtk.org/u/JAHDv)
#### Post date: [March 23, 2023, 8:13am UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871/3 "2023-03-23T08:13:41Z")

</div>

Hi Paulo,

I mean rotation of the scene with the mouse

regards!

---

<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: [March 23, 2023, 11:22am UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871/4 "2023-03-23T11:22:50Z")

</div>

Hello,

Which interactor style class are you using?

best,

PC

---

<div class="post-metadata">

### Author: ![JAHDv](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jahdv/32/3425_2.png) [@JAHDv](https://discourse.vtk.org/u/JAHDv)
#### Post date: [March 23, 2023, 12:10pm UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871/5 "2023-03-23T12:10:46Z")

</div>

Hi Paulo,

i’m using public class MyInteractorStyle : vtkInteractorStyleTrackballCamera

regards!

---

<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: [March 24, 2023, 12:14pm UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871/6 "2023-03-24T12:14:47Z")

</div>

Hello,

The problem is that that interactor style transforms the camera, not the objects. When you drag the mouse to rotate the scene, you’re actually orbiting the camera around the focal point, not the scene’s geometry. Then you have to decide whether to stick with your current interactor style or choose another one that better fits changing the actors. I believe you could consider subclassing `vtkInteractorStyleTrackballActor` instead.

take care,

PC

---

<div class="post-metadata">

### Author: ![JAHDv](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jahdv/32/3425_2.png) [@JAHDv](https://discourse.vtk.org/u/JAHDv)
#### Post date: [March 24, 2023, 12:50pm UTC](https://discourse.vtk.org/t/how-to-freeze-an-actor-in-the-render-and-not-rotate-with-the-other-actors/5871/7 "2023-03-24T12:50:52Z")

</div>

Thank you very much Paulo
