executing items of main menu tabs

executing items of main menu tabs

marcury
Advocate Advocate
614 Views
4 Replies
Message 1 of 5

executing items of main menu tabs

marcury
Advocate
Advocate

hi , kind of weird issue , imagine theres not visible mel command about open menu constraint and click on parent constraint item .... any back door way to execute that? kind of find menu constraint ... execute menu item 5......
the thing is scripts or plugins need physically click the option to start the command , and i want make a script of several actions at same time , i wonder if can execute items of menus in some way if theres not a mel command for that......thanks!

0 Likes
615 Views
4 Replies
Replies (4)
Message 2 of 5

Raul_Teleki
Explorer
Explorer

Could you be more specific please? maya.cmds contains all commands registered within Maya. This includes menus and menu items(mostly)

You cand run dir(maya.cmds) to get all registered commands. For instance:

alLCommands = dir(maya.cmds)
for x in alLCommands:
if 'constraint' in x.lower():
print x

0 Likes
Message 3 of 5

marcury
Advocate
Advocate
yes , plugin autorig called setup machine 3 , have a menu called TSM3 in the main menu bar , other menus have some feedback about you clicked this or that item in this or that editmenu , but this TSM3 menu have nothing , inside this menu there is the RIG button to start rig process , i would like run this RIG by script , i dont want manually have to click the menu and find RIG , can not find any way to access that menu by mel or python
0 Likes
Message 4 of 5

Raul_Teleki
Explorer
Explorer

Open the script editor and turn on 'Echo all' and press the menus maybe you will get the command that created that menu. Since it's a plugin, I'm not sure how verbose the menu pressing is, but you should def have access to the cmd that creates those menus/functions. Look in the help files of the plugin, maybe they supply the cmd name

0 Likes
Message 5 of 5

marcury
Advocate
Advocate
no feedback in the echo all , even creator said need lot of work to can have access in easier way scripting way ..... so i was just thinking if some dirty trick like edit menu select items but for now nothing , no luck
0 Likes