Add python script to menu

Add python script to menu

Anonymous
Not applicable
2,921 Views
1 Reply
Message 1 of 2

Add python script to menu

Anonymous
Not applicable

I have written a python script which I want to be callable via some kind of menu or keyboard shortcut.

 

The script is in my Max Installation Directory/scripts/Python folder.

 

I want to distribute this script to users and they should be able to easily add it to either a menu or assign a keyboard shortcut to it.

 

Thanks.

0 Likes
Accepted solutions (1)
2,922 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

For this case there is actually a pretty cool exemple with MaxPlus showing you how to create an extra entry in the top menu :

 

Check out this file :

 

http://help.autodesk.com/view/3DSMAX/2017/ENU/index.html?guid=__py_ref_demo_menu_8py_example_html

 

I also found out you can add a startup.ms script this folder :

- "C:\Users\USERNAME\AppData\Local\Autodesk\3dsMax\2017 - 64bit\ENU\scripts\"

It will be run each time 3dsmax startup.

In this file I wrote this to run my python script : 

python.ExecuteFile @"G:\startup_win.py"

From here every of my python script start.

0 Likes