# Trouble Using Interact() Method

**URL:** https://discourse.paraview.org/t/trouble-using-interact-method/15902
**Category:** ParaView Support
**Tags:** python
**Created:** [December 24, 2024, 8:01pm UTC](https://discourse.paraview.org/t/trouble-using-interact-method/15902 "2024-12-24T20:01:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Brian\_Hagewiesche](https://discourse.paraview.org/user_avatar/discourse.paraview.org/brian_hagewiesche/32/15725_2.png) [@Brian\_Hagewiesche](https://discourse.paraview.org/u/Brian_Hagewiesche)
#### Post date: [December 24, 2024, 8:01pm UTC](https://discourse.paraview.org/t/trouble-using-interact-method/15902/1 "2024-12-24T20:01:35Z")

</div>

I am currently working on a python script to perform some operations as a macro. For part of it I want the user to define a cutting plane visually, as in be able to move around the plane the way you might be able to do so with a clip in a render view. I thought utilizing the Interact Method may help with that but I don’t know how to use it and I am getting a “QVTKInteractor cannot control the event loop.” error. As such I was wondering what the best solution to this issue may be. Thank you for your time.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 30, 2024, 9:14am UTC](https://discourse.paraview.org/t/trouble-using-interact-method/15902/2 "2024-12-30T09:14:00Z")

</div>

Are you using this script in ParaView python shell or pvpython ?

---

<div class="post-metadata">

### Author: ![Brian\_Hagewiesche](https://discourse.paraview.org/user_avatar/discourse.paraview.org/brian_hagewiesche/32/15725_2.png) [@Brian\_Hagewiesche](https://discourse.paraview.org/u/Brian_Hagewiesche)
#### Post date: [January 2, 2025, 3:53am UTC](https://discourse.paraview.org/t/trouble-using-interact-method/15902/3 "2025-01-02T03:53:03Z")

</div>

Neither it is python file that is imported as a marco into Paraview

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 3, 2025, 8:43am UTC](https://discourse.paraview.org/t/trouble-using-interact-method/15902/4 "2025-01-03T08:43:30Z")

</div>

using `interact` is only supported in pvpython, not in python macros inside of ParaView.
