# Change interactor style at runtime

**URL:** https://discourse.vtk.org/t/change-interactor-style-at-runtime/1985
**Category:** Support
**Created:** [October 27, 2019, 11:52am UTC](https://discourse.vtk.org/t/change-interactor-style-at-runtime/1985 "2019-10-27T11:52:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flaviu2](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/74df32/32.png) [@flaviu2](https://discourse.vtk.org/u/flaviu2)
#### Post date: [October 27, 2019, 11:52am UTC](https://discourse.vtk.org/t/change-interactor-style-at-runtime/1985/1 "2019-10-27T11:52:51Z")

</div>

It is possible to change the **vtkRenderWindowInteractor** interactor style at run time ? I have tried to change it from 2D interactor style to 3D interactor style, and is not working … and I am wonder if it is possible …

I have at the start of the program, on InitialUpdate:

`m_pInteractor->SetInteractorStyle(vtkInteractorStyleImage::New());`

where **m\_pInteractor** is **vtkRenderWindowInteractor** type.

and somewhere, at some button event:

`m_pInteractor->SetInteractorStyle(vtkInteractorStyleTrackballCamera::New());`

but seem that **m\_pInteractor** has the same **vtkInteractorStyleImage** type, not **vtkInteractorStyleTrackballCamera** type.

I am really need this switch … it is possible ? And if there it is, how can I do this switch ?
