Yes, you can do that using a script job. You probably want to have your script job push the info onto a queue which your gui thread then checks and does stuff with.
-Chris On Thu, Dec 3, 2009 at 4:42 PM, johnvdz <[email protected]> wrote: > i've been playing with pyQT GUIs myself but i was wondering if you can > call back from your maya Scene to your pyqt Gui ie select a node in maya > and it also selects the same object in your character control Gui? > anyone managed to do this? i gather this will be more capable when its > fully implemented into maya. > > john > > > > rudi wrote: >> Ok.I am so "smart" that hay imported al pymel during the GUI built >> with Tkinter.So everything was mixed. >> Anyway,getting back to the original problem,now using callback, the >> external script is well executed,but the entry text is ignored >> So I still get the joint created with no name....So the makeSkeleton >> script should get the value of the entry.I have added in the >> makeSkeleton code: >> charName=charNameEntry.get() >> >> But of course,now the charNameEntry is not defined. >> >> >> >> >> >> On 3 dic, 00:10, rudi hammad <[email protected]> wrote: >> >>> It is Tkinter class(I think..).I didn´t but the wholes script because it is >>> very long. >>> I use Tkinter because if someday the sudio I´ll work in changes from maya >>> to xsi for example,I´ll still be able to built UI.¬¬ yes, I am lazy. >>> I got: >>> creatCharButton <type 'instance'> >>> >>> From: [email protected] >>> To: [email protected] >>> Subject: Re: [Maya-Python] Re: Comunication between GUI and external >>> scripts? >>> Date: Wed, 2 Dec 2009 14:41:59 -0800 >>> >>> is Button a pymel or tkinter Button class? you never sent along the whole >>> script so i'm assumed that it was a pymel Button class and i don't believe >>> that they have a 'place' method. >>> you can find out by doing: >>> print `createCharButton`, type(createCharButton) >>> >>> -chad >>> >>> -- >>> >>> http://groups.google.com/group/python_inside_maya >>> _________________________________________________________________ >>> Deja que Sietes te enseñe todo los secretos de >>> Windowshttp://www.sietesunpueblodeexpertos.com/ >>> >> >> > > -- > http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
