Maya cmds ui item parented to pyside

17 views
Skip to first unread message

Johan Forsgren

unread,
Mar 9, 2014, 3:19:02 PM3/9/14
to python_in...@googlegroups.com
Hi list, sorry for this, I know this has been covered before somewhere but my google-fu is not as strong as it used to be. 
Some time ago I wrote this tool using the standard maya cmds ui elements.  Now I would like to rewrite this in pyside but the problem is 

1. I'm lazy 
2. I literary only have my 5 minute coffee breaks to rewrite this.  If I had an hour or two to spend on this that be awesome.  But that's time I don't have right now :( 

So, a quick, temporary fix would be to parent my ui to a pyqt widget, but is that possible? It should be right?  



--
JOHAN FORSGREN
CG ARTIST
Phone + 46 31 752 20 00 johan.f...@edithouse.se
Direct + 46 31 752 20 07Follow us at facebook.com/edithousefilmworks
edithouse FILM WORKS www.edithouse.se
Lilla Bommen 4a, S-411 04 Göteborg, Swedenwww.facebook.com/edithousefilmworks





Justin Israel

unread,
Mar 9, 2014, 3:36:30 PM3/9/14
to python_in...@googlegroups.com

Yes you could get the reference to the widget using maya.OpenMayaUI.MQtUtil, and shiboken. But that does still leave you with a sort of black hole beneath it. Does it gain you much?

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANSD_rrB9JQM5L7vZeraMA3XSy1ui-4SfSNRS%3DHDjdhezcGONw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Johan Forsgren

unread,
Mar 10, 2014, 2:12:32 AM3/10/14
to python_in...@googlegroups.com
Well it satisfies my curiosity a bit, but in this case it doesn't really gain me anything.  Thanks though :)
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA34xh4mvU_ytnHv7jT9Lf__1%3D8oE52qBqWya_1RyN_Fkg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages