Re: [Maya-Python] maya pyside2 shelf button

2019-02-09 Thread blossom ghuntla
Thank you all for the reply and information it was very helpful On Sat, 9 Feb 2019, 12:39 Justin Israel, wrote: > > > On Wed, Feb 6, 2019, 4:20 PM blossom ghuntla > wrote: > >> Hi Justin, its a question about the technique that i have used is it >> appropriate for longer term? >> > > > Sorry fo

Re: [Maya-Python] maya pyside2 shelf button

2019-02-08 Thread Justin Israel
On Wed, Feb 6, 2019, 4:20 PM blossom ghuntla wrote: > Hi Justin, its a question about the technique that i have used is it > appropriate for longer term? > Sorry for the delayed reply. Using the global window variable in the module could work fine. No one should be using the reload() command in

Re: [Maya-Python] maya pyside2 shelf button

2019-02-05 Thread blossom ghuntla
Hi Justin, its a question about the technique that i have used is it appropriate for longer term? Hi Michael Boon, as per your suggestion i'll look into OpenMayaUI On Wed, Feb 6, 2019 at 4:03 AM Michael Boon wrote: > For simple situations, this technique comes with some risk that you might > o

Re: [Maya-Python] maya pyside2 shelf button

2019-02-05 Thread Michael Boon
For simple situations, this technique comes with some risk that you might override or otherwise lose the global variable. Make sure you give it a good, unique name. Note that if it's a module variable, and you reload the module, Python does not delete the variable, so that should still work. Th

Re: [Maya-Python] maya pyside2 shelf button

2019-02-05 Thread Justin Israel
On Tue, Feb 5, 2019, 7:31 PM blossom ghuntla wrote: > yes > but again is this the preferred technique > Ok, but is this a question or are you confirming you have solved the issue with the suggested technique? > On Tue, Feb 5, 2019 at 11:53 AM Justin Israel > wrote: > >> >> >> On Tue, Feb 5, 2

Re: [Maya-Python] maya pyside2 shelf button

2019-02-04 Thread blossom ghuntla
yes but again is this the preferred technique On Tue, Feb 5, 2019 at 11:53 AM Justin Israel wrote: > > > On Tue, Feb 5, 2019, 5:27 PM blossom ghuntla > wrote: > >> Hello Justin, >> Thanks for the reply >> and sorry for late reply i was not well >> >> >> *If your UI is still showing when they cl

Re: [Maya-Python] maya pyside2 shelf button

2019-02-04 Thread Justin Israel
On Tue, Feb 5, 2019, 5:27 PM blossom ghuntla wrote: > Hello Justin, > Thanks for the reply > and sorry for late reply i was not well > > > *If your UI is still showing when they click the button a second time do > you want it to close the existing one and show a new one?* > yes > > > *Or do you w

Re: [Maya-Python] maya pyside2 shelf button

2019-02-04 Thread blossom ghuntla
Hello Justin, Thanks for the reply and sorry for late reply i was not well *If your UI is still showing when they click the button a second time do you want it to close the existing one and show a new one?* yes *Or do you want it to leave the exist one and show a new copy? * no *I'm guessing f

Re: [Maya-Python] maya pyside2 shelf button

2019-02-01 Thread Justin Israel
On Sat, Feb 2, 2019, 5:30 AM blossom ghuntla wrote: > Hello Guys, > > I have a query regarding shelf button of UI > i have created a ui with pyside2 and put it on the maya shelf > i click to open the ui it works well > as i do it for the second time it opens same UI for the second time > so is th