Re: [Maya-Python] Re: popupMenu command works in Python but not in Mel

2018-07-26 Thread likage
Adding in a bit more information. My objective initially is to have a shelfButton to have 2 different selection menus. 1. If User clicks on the shelf button, it will shows menuA... 2. If User clicks on the shelf button while pressing "ALT" key, it will shows menuB... My initial code, where it k

Re: [Maya-Python] Re: popupMenu command works in Python but not in Mel

2018-07-26 Thread likage
Doesn't seems to work... Getting the same error... On Thursday, July 26, 2018 at 1:53:11 PM UTC-7, simon payne wrote: > > Yup, as Robert says. You can cast a python command though : > > -postMenuCommand = “python ‘myCommand()’” > > Simon > > Sent from my iPhone > > On 26 Jul 2018, at 21:22, Robert

Re: [Maya-Python] Re: popupMenu command works in Python but not in Mel

2018-07-26 Thread Simon Payne
Yup, as Robert says. You can cast a python command though : -postMenuCommand = “python ‘myCommand()’” Simon Sent from my iPhone > On 26 Jul 2018, at 21:22, Robert White wrote: > > I believe the problem you're running into here, is that the popupMenu > -postMenuCommand expects the command to