Re: [Maya-Python] Re: Maya command and complex argument

2018-10-16 Thread Marcus Ottosson
Now I also don't understand. I thought he was referring to the Maya command *plug-in*, MPxCommand , and the argument it can get, MArgList

Re: [Maya-Python] Re: PYQT “pop up menu”

2018-10-16 Thread Justin Israel
On Wed, Oct 17, 2018, 2:29 AM wrote: > On Tuesday, October 16, 2018 at 1:52:51 AM UTC-4, Michael Boon wrote: > > It depends a lot on the context you're in. If you have created a custom > Qt button and you want to give it a right-click menu, a lot of the time you > have to do something like this

Re: [Maya-Python] Time slider's frame popup, anyone knows how to disable it? [Via Python, MEL]

2018-10-16 Thread Tim Fowler
Not 100% sure but I think it might be Tool Clips that are making that. Try disabling them in the "Help" section of the main prefs. [image: toolclips.PNG] -Tim On Mon, Oct 15, 2018 at 3:04 PM Wexler wrote: > Hi all. > > -- You received this message because you are subscribed to the Google

Re: [Maya-Python] Time slider's frame popup, anyone knows how to disable it? [Via Python, MEL]

2018-10-16 Thread Daniel Wexler
*Thank you!* So simple -- *Daniel Wexler* Pipeline TD *Stellar Creative Lab Inc.* 1128 Homer Street Vancouver, B.C. V6B 2X6 On Tue, Oct 16, 2018 at 10:58 AM Tim Fowler wrote: > Not 100% sure but I think it might be Tool Clips that are making that. > Try disabling them in the "Help"

Re: [Maya-Python] Re: PYQT “pop up menu”

2018-10-16 Thread Adam Baker
I’m looking to create a menu that is shown when you preform a right click on a button. The photo was an example for the maya.cmds.popupMenu() that I want to repeat using QT Instead. Hope this helps - Adam -- You received this message because you are subscribed to the Google Groups "Python

Re: [Maya-Python] Re: PYQT “pop up menu”

2018-10-16 Thread Wexler
Here is an example that *might* put you in the right track.. please note, I did not test this snippet from functools import partial class MyUI(window or dialog or widget or whatever...): # create a button self.my_btn = QtWidgets.QPushButton('Right Click Me') # left click

Re: [Maya-Python] Re: PYQT “pop up menu”

2018-10-16 Thread Michael Boon
I think Wexler has basically what you need there. All the self.my_btn stuff should be in a function, probably in __init__ for a simple case. You might also need self.my_btn.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) and the connections don't need to use a partial function as long as you

[Maya-Python] Re: Maya command and complex argument

2018-10-16 Thread Michael Boon
Now it makes sense to me :) Sorry I don't have any answers though. On Tuesday, 16 October 2018 23:54:09 UTC+11, Rémi Deletrain wrote: > > Thank you for your answers. > > Yes I spoke to Maya MPxCommand. > I wanted to know if it was possible to return arguments more complex than > int, bool, float

Re: [Maya-Python] Re: PYQT “pop up menu”

2018-10-16 Thread ajrb25
On Tuesday, October 16, 2018 at 8:21:02 PM UTC-4, Michael Boon wrote: > I think Wexler has basically what you need there. > All the self.my_btn stuff should be in a function, probably in __init__ for a > simple case. > > You might also need >

[Maya-Python] Re: PYQT “pop up menu”

2018-10-16 Thread ajrb25
On Tuesday, October 16, 2018 at 1:52:51 AM UTC-4, Michael Boon wrote: > It depends a lot on the context you're in. If you have created a custom Qt > button and you want to give it a right-click menu, a lot of the time you have > to do something like this in the __init__ function: > > >

[Maya-Python] Re: Maya command and complex argument

2018-10-16 Thread Rémi Deletrain
Thank you for your answers. Yes I spoke to Maya MPxCommand. I wanted to know if it was possible to return arguments more complex than int, bool, float and string. Marcus a répondu à ma question. for speed my process I must to change my workflow I think for works with MPxCommand. -- You