# Plane manipulation during running script

**URL:** <https://community.materialise.com/t/plane-manipulation-during-running-script/2126>\
**Category:** MIS - Scripting Forum\
**Created:** [October 14, 2025, 6:11am UTC](https://community.materialise.com/t/plane-manipulation-during-running-script/2126 "2025-10-14T06:11:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karel.penicka](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@karel.penicka](https://community.materialise.com/u/karel.penicka)\
**Post date:** [October 14, 2025, 6:11am UTC](https://community.materialise.com/t/plane-manipulation-during-running-script/2126/1 "2025-10-14T06:11:29Z")

</div>

Hi,

I have a Python script for performing osteotomies, which includes my own custom GUI.  
At one point in the workflow, I need to select the osteotomy plane in 3-matic, translate it manually, and then click _Compute_.

However, while the script is running, 3-matic does not allow me to interact with the model (e.g., selecting or moving the plane).

Is there any way to make this possible — for example, to temporarily allow manual interaction with 3-matic while a script is still active?

Thank you very much for your help.

Karel

 ![obrazek](https://canada1.discourse-cdn.com/flex035/uploads/materialiseacademy/original/1X/d868b24124790b884123c5e9e1e02a26ae0db070.jpeg)

---

<div class="post-metadata">

**Author:** ![imaninanoh](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.materialise.com/imaninanoh/32/123_2.png) [@imaninanoh](https://community.materialise.com/u/imaninanoh)\
**Post date:** [October 15, 2025, 2:18am UTC](https://community.materialise.com/t/plane-manipulation-during-running-script/2126/2 "2025-10-15T02:18:44Z")

</div>

Hi Karel,

For interactive translation, one API you can use is **`activate_translate_rotate`(_main\_entity=None_, _move\_along\_entities=None_, _translation\_step=None_, _rotation\_step=None_)**

Please try and let me know if this helps! :)

Kind regards,

Imanina

---

<div class="post-metadata">

**Author:** ![karel.penicka](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@karel.penicka](https://community.materialise.com/u/karel.penicka)\
**Post date:** [October 15, 2025, 7:59am UTC](https://community.materialise.com/t/plane-manipulation-during-running-script/2126/3 "2025-10-15T07:59:15Z")

</div>

You are brilliant mind …

It works. Thank you.

I use it in this script. It was recorded before i rewrite code with your advice.

Thank you again.

[![](https://img.youtube.com/vi/AU5QkN2rWOc/maxresdefault.jpg "Osteotomies script 2K - 3-matic") ](https://www.youtube.com/watch?v=AU5QkN2rWOc)

---

<div class="post-metadata">

**Author:** ![Agustin](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Agustin](https://community.materialise.com/u/Agustin)\
**Post date:** [October 17, 2025, 2:48pm UTC](https://community.materialise.com/t/plane-manipulation-during-running-script/2126/4 "2025-10-17T14:48:29Z")

</div>

Hi Karel!

When working with custom GUIs in 3m I found very useful to hide the “Executing Python script” sign. With:

trimatic.suspend\_progress()

trimatic.resume\_progress()

at the beginning/ end of the script you can toggle on/off that progress bar. Hope this is useful for you too. Loved your script btw!

---

<div class="post-metadata">

**Author:** ![karel.penicka](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@karel.penicka](https://community.materialise.com/u/karel.penicka)\
**Post date:** [October 21, 2025, 11:34am UTC](https://community.materialise.com/t/plane-manipulation-during-running-script/2126/5 "2025-10-21T11:34:56Z")

</div>

Hi Agustin.

Thank you for your useful advice. I started using it in all my scripts. Do you have any other interesting tips?

I got it in another Open wedge script.

[![](https://img.youtube.com/vi/zF9Ub6pn_dg/maxresdefault.jpg "Open Wedge Osteotomy Simulation in 3-matic | Python Script for Surgical Planning") ](https://www.youtube.com/watch?v=zF9Ub6pn_dg)
