Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all! How can I run commands on menuItems when selected? I was trying to make a def function but don't know how to properly execute it
cmds.optionMenu(label='Pivot', changeCommand=pivotOrient) cmds.menuItem( label='Object', ) cmds.menuItem( label='World') cmds.menuItem( label='Component' ) cmds.menuItem( label='Normal' )
When I select "Object" the pivot orientation changes to "object", when I select "World," the pivot orientation changes to "world" and so on. I know that the feature is already in the Modeling Toolkit but I'm trying to make a custom-built and a simplified version of it. Thanks in advance.
Solved! Go to Solution.