# Can I write my own python script as a button in the menu bar?

**URL:** <https://community.materialise.com/t/can-i-write-my-own-python-script-as-a-button-in-the-menu-bar/1966>\
**Category:** MIS - Scripting Forum\
**Created:** [October 15, 2024, 1:42pm UTC](https://community.materialise.com/t/can-i-write-my-own-python-script-as-a-button-in-the-menu-bar/1966 "2024-10-15T13:42:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shen](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@shen](https://community.materialise.com/u/shen)\
**Post date:** [October 15, 2024, 1:42pm UTC](https://community.materialise.com/t/can-i-write-my-own-python-script-as-a-button-in-the-menu-bar/1966/1 "2024-10-15T13:42:16Z")

</div>

Hello, now I have written several Python script files by myself, please 3-matic allow me to write a script file to make a button to display in the menu bar?

---

<div class="post-metadata">

**Author:** ![MISter\_scripting](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.materialise.com/mister_scripting/32/26_2.png) [@MISter\_scripting](https://community.materialise.com/u/MISter_scripting)\
**Post date:** [October 17, 2024, 2:41pm UTC](https://community.materialise.com/t/can-i-write-my-own-python-script-as-a-button-in-the-menu-bar/1966/2 "2024-10-17T14:41:23Z")

</div>

Hi Shen,

Yes, this is possible. In this example, I created a button and icon to one of the demo scripts that comes with 3-matic.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/materialiseacademy/original/1X/db720369bc35518f8bb1c54a4cc1eba4d18f4291.png)

How to do this:

1. Add the script that is already in your library to the quick access toolbar.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/materialiseacademy/original/1X/bf99f3edc5868829cbce37812a7fe74ad5e368e9.png)
2. (optional) Create a new tab with the + icon  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/materialiseacademy/original/1X/1ed64fc6299a34d3104e0a3b1f0a4b3fcd52e444.png)
3. Go to Options & Help → Click on Customize User Interface
4. While the window is open, you can drag any tool around and place it where you want. In this case, you can move the Align and Remesh.py from the quick access toolbar (top of the screen) to the custom tab that you just created.
5. Assign an icon and/or rename as you want by right-clicking on it.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/materialiseacademy/original/1X/86810dce304301e26afda2cf498f0f6aa676205d.png)

Hope this helps!  
Sjoerd

---

<div class="post-metadata">

**Author:** ![eric\_b](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@eric\_b](https://community.materialise.com/u/eric_b)\
**Post date:** [October 17, 2024, 5:20pm UTC](https://community.materialise.com/t/can-i-write-my-own-python-script-as-a-button-in-the-menu-bar/1966/3 "2024-10-17T17:20:58Z")

</div>

Thank you for this, both the question and answer!

---

<div class="post-metadata">

**Author:** ![eric\_b](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@eric\_b](https://community.materialise.com/u/eric_b)\
**Post date:** [February 13, 2025, 7:19pm UTC](https://community.materialise.com/t/can-i-write-my-own-python-script-as-a-button-in-the-menu-bar/1966/4 "2025-02-13T19:19:31Z")

</div>

Is there a similar operation in Mimics? I’ve tried modifying the user\_menu\_v1\_0.ini file by adding something like “mimicsclassic.scripting\_library.scriptname” but had no luck.
