For example 1, you can kill the dialog window with just a simple mel script... I think it fits your purpose :D
On May 8, 11:03 pm, Gaël Honorez <[email protected]> wrote: > Thanks, but not very nice solutions : > > Example 1 : > The user must click another button after saving. Annoying. > Unless there is a way to kill the confirm dialog by script, but I dont > know how. > > Example 2: > Maya disappears, and if the script crash for some reason, you just > lost your work. And having maya windows disappearing = crash for a lot > of users, so it's also annoying... > > On 8 mai, 16:07, ChrisChia <[email protected]> wrote: > > > Hi Gael, > > If you want an easy way out, you can use this built in mel function: > > Example 1: > > if(`window -exists "win1"`==true) > > deleteUI "win1"; > > window -topEdge 1 -leftEdge 1 "win1"; > > //confirmDialog will freeze Maya. > > confirmDialog -p "win1"; > > > Example 2: > > global string $gMainWindow; > > // hide Main Window > > window -edit -vis 0 $gMainWindow; > > > Enjoy! > > > On May 7, 9:44 pm, Gaël Honorez <[email protected]> wrote: > > > > Hi, > > > > I'm making some custom file saving dialogs with pyQT. All the stuffs > > > work nice, but I have one big problem : > > > > When saving, it's obvious that I DONT want the user being able get > > > back in maya and do stuffs. > > > > But actually, when I'm opening the dialog box, maya is still available > > > to the user. > > > > How is it possible to make maya wait for the dialog to close ? > > > > (if you know the answer, please post a little example with a > > > unresponsive "hello world" dialog box :)- Masquer le texte des messages > > > précédents - > > > - Afficher le texte des messages précédents - --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
