# Drag and drop actors

**URL:** https://discourse.vtk.org/t/drag-and-drop-actors/5620
**Category:** Support
**Created:** [April 22, 2021, 8:43pm UTC](https://discourse.vtk.org/t/drag-and-drop-actors/5620 "2021-04-22T20:43:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aowen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/aowen/32/1570_2.png) [@aowen](https://discourse.vtk.org/u/aowen)
#### Post date: [April 22, 2021, 8:43pm UTC](https://discourse.vtk.org/t/drag-and-drop-actors/5620/1 "2021-04-22T20:43:31Z")

</div>

Is there a way to “drag and drop” a 2D actor? I’ve seen this question come up multiple times in older forum threads, but I haven’t seen any with a posted solution.

To be clear, I don’t need to rotate, pan, zoom, etc. I’d like to be able to mouse click on one actor of many within a window, drag that actor to a new location in the render window, and drop it in this location, which essentially would be come its new origin.

---

<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: [April 26, 2021, 12:08pm UTC](https://discourse.vtk.org/t/drag-and-drop-actors/5620/2 "2021-04-26T12:08:58Z")

</div>

Hi, Alister,

Please, check this example: [https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MoveActor](https://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MoveActor) .

regards,

Paulo

---

<div class="post-metadata">

### Author: ![aowen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/aowen/32/1570_2.png) [@aowen](https://discourse.vtk.org/u/aowen)
#### Post date: [April 26, 2021, 3:59pm UTC](https://discourse.vtk.org/t/drag-and-drop-actors/5620/3 "2021-04-26T15:59:59Z")

</div>

Thanks, Paulo! This is what I was looking for.

---

<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: [June 29, 2021, 12:35pm UTC](https://discourse.vtk.org/t/drag-and-drop-actors/5620/4 "2021-06-29T12:35:31Z")

</div>

Updating the link to the example: [https://kitware.github.io/vtk-examples/site/Cxx/Visualization/MoveActor](https://kitware.github.io/vtk-examples/site/Cxx/Visualization/MoveActor)
