Great...it is happening with every widget.I have a counter widget named spineCounter.Guess what, If i do spineCounter.get() maya also crash.
On 3 dic, 23:20, rudi <[email protected]> wrote: > Hi again...I think I know the problem.I don´t it has something to do > with callback.Something is wrong with the get().I have: > > #----charNameGrp > charNameGrp=pmw.Group(setupTab,tag_text="character's > name",ring_borderwidth=2,tag_font=("Helvetica", "8", "bold")) > #----charNameEntry > charNameEntry=Entry(charNameGrp.interior(),width=22,borderwidth=1) > charName=charNameEntry.get() > > if I do "print charName" nothing is printed because the entry is > empty.Okey then,now that my UI is open I wrigth in the entry "BOB". > When I do now "print charName" instead of getting BOB printed, I have > maya crashing...Is it constantly looping trough something to get that > crash?? > I can get the most simple thing done.Woww,that´s a good feeling. > > On 3 dic, 22:52, Chris G <[email protected]> wrote: > > > 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
