Re: [Maya-Python] PyQt and Maya's scriptedPanels

2012-04-18 Thread Jo Jürgens
I played around with this a bit. Here's how to add a PyQt menu to Maya, so you can have icons in Maya menus (you loose optionBoxes though) http://pastebin.com/h9KG4pRz import os from PyQt4 import QtCore as QtCore from PyQt4 import QtGui as QtGui import sip import pymel.all as p import maya.

Re: [Maya-Python] PyQt and Maya's scriptedPanels

2012-04-17 Thread Richard Kazuo
Justin's solution to change True to 1 works. :) We're using Maya 2011 here at work so this will do for now. Thanks guys! On Tue, Apr 17, 2012 at 7:09 PM, Chad Dombrova wrote: > yeah, i remember this bug. it's fixed if you install the latest pymel or > use maya > 2011. > > -chad > > > On Tue,

Re: [Maya-Python] PyQt and Maya's scriptedPanels

2012-04-17 Thread Chad Dombrova
yeah, i remember this bug. it's fixed if you install the latest pymel or use maya > 2011. -chad On Tue, Apr 17, 2012 at 3:04 PM, Justin Israel wrote: > Sorry, typo: > > import *maya.mel* as mm > mm.eval('generateChannelMenu("%s", 1)' % self.popup) > > > On Tue, Apr 17, 2012 at 3:03 PM, Justin I

Re: [Maya-Python] PyQt and Maya's scriptedPanels

2012-04-17 Thread Justin Israel
Sorry, typo: import *maya.mel* as mm mm.eval('generateChannelMenu("%s", 1)' % self.popup) On Tue, Apr 17, 2012 at 3:03 PM, Justin Israel wrote: > Seems like pymel's eval functionality isn't converting your bool True -> 1 > > Maybe try this: > p.mel.generateChannelMenu(self.popup, 1) > > Or

Re: [Maya-Python] PyQt and Maya's scriptedPanels

2012-04-17 Thread Justin Israel
Seems like pymel's eval functionality isn't converting your bool True -> 1 Maybe try this: p.mel.generateChannelMenu(self.popup, 1) Or just use the standard mel module: import cmds.mel as mm mm.eval('generateChannelMenu("%s", 1)' % self.popup) On Tue, Apr 17, 2012 at 2:27 PM, Richard Kazuo

Re: [Maya-Python] PyQt and Maya's scriptedPanels

2012-04-17 Thread Richard Kazuo
Thanks for this nice piece of code! Strangely right-mouse clicks aren't working here... (Maya 2011 x64) # MelError: Error during execution of MEL script: generateChannelMenu("MayaWindow|MainAttributeEditorLayout|formLayout37|AEmenuBarLayout|myHappyBox|popupMenu79",True); # Line 1.116: Invalid u

Re: [Maya-Python] PyQt and Maya's scriptedPanels

2012-04-11 Thread Jo Jürgens
Nathan Horne has several very useful posts about PyQt and Maya. You should read this: http://nathanhorne.com/?p=381 Using the code in that post, here's how to achieve what you want: import pymel.all as p class MayaSubWindow(QtGui.QMainWindow): def __init__(self, parent=getMayaWindow()):

[Maya-Python] PyQt and Maya's scriptedPanels

2012-04-10 Thread dgovil
Hey guys, I want to create a few PyQt UI's to keep all my animation tools in a particular area and cut down on clutter. I know this must be possible because I've seen a few GUI's pull it off like this: http://www.martintomoya.com/Site/tools_info.html Specifically I would like to embed the channel