cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Marking Menu - Python language support

Marking Menu - Python language support

When creating custom marking menu where you want to add some of your own scripts there is no option to directly add few lines of Python code since marking menu seems to support only MEL directly. 

It would be great if you can choose the language of your script there in Marking Menu just like you can, for example, for shelf buttons (when you edit them) or for custom hotkeys....like on this image below.

languageChoice.jpg 


It is a pain to save file externally for some small script just so that you can call for it in marking menu again. I also prefer to save/backup making menu only as one file but not multiple files which i might even forget what is what when you reinstall or update to a newer version of Maya.

3 Comments
formjune
Participant

Man, you can change language it 3 ways:

1. using mel python command. python("import foo;foo.foo()") for example

2. Open marking menu and change language flag to python.

3. Use mmtokey language change utility

However in 2 last ways after once menu item (if you doesn't edit particular element it won't happen) is edited it'll be mel-sourced again. 

klaudio2u
Enthusiast

@formjune 
1. I know about that and i mentioned that briefly in the description with, and i quote: "It is a pain to save file externally for some small script just so that you can call for it in marking menu again". 
2. There is no such thing available which is a feature exactly what i am actually suggesting here. 
3. I know there some third-party solutions out there but this is a separate thing and it's should be done years ago considering the Maya heavy dependency on using marking menus.  

sokolmehmeti
Explorer

I agree on this one. ! please make python support for marking menus. Marking menus are soo fast to work with. 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea