# Permanent smooth Rotation of actors

**URL:** https://discourse.vtk.org/t/permanent-smooth-rotation-of-actors/670
**Category:** Support
**Created:** [April 3, 2019, 8:01am UTC](https://discourse.vtk.org/t/permanent-smooth-rotation-of-actors/670 "2019-04-03T08:01:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [April 3, 2019, 8:01am UTC](https://discourse.vtk.org/t/permanent-smooth-rotation-of-actors/670/1 "2019-04-03T08:01:10Z")

</div>

I would like to add smooth permanent Rotation to some actors. Is there an Example on how to achieve this? I think I could listen to a Rendered Event

---

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [April 11, 2019, 10:21am UTC](https://discourse.vtk.org/t/permanent-smooth-rotation-of-actors/670/2 "2019-04-11T10:21:32Z")

</div>

Any hint?

---

<div class="post-metadata">

### Author: ![dan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dan/32/289_2.png) [@dan](https://discourse.vtk.org/u/dan)
#### Post date: [April 11, 2019, 1:39pm UTC](https://discourse.vtk.org/t/permanent-smooth-rotation-of-actors/670/3 "2019-04-11T13:39:40Z")

</div>

Do you mean something [like this](https://github.com/daniel-s/vtk_examples/blob/master/animation.py)?

Basically, you use `interactor.CreateRepeatingTimer(interval)`, then `interactor.AddObserver("TimerEvent", callback_func)`. In `callback_func` you change your actor a little and update. If the interval is small enough—and the change small enough—then you get a smooth animation.

---

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [April 11, 2019, 7:06pm UTC](https://discourse.vtk.org/t/permanent-smooth-rotation-of-actors/670/4 "2019-04-11T19:06:37Z")

</div>

Ill give it a try. Thanks

---

<div class="post-metadata">

### Author: ![pettaa123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pettaa123/32/218_2.png) [@pettaa123](https://discourse.vtk.org/u/pettaa123)
#### Post date: [April 15, 2019, 12:09pm UTC](https://discourse.vtk.org/t/permanent-smooth-rotation-of-actors/670/5 "2019-04-15T12:09:59Z")

</div>

Worked perfectly. Thumbs up. The CSharp equivalent looks like: `Interactor.TimerEvt += rotate; private void rotate(vtkObject sender, vtkObjectEventArgs e) {actor.Rotate(__)}`
