Re: [Maya-Python] Re: Get the current Maya session

2018-08-27 Thread Justin Israel
On Tue, Aug 28, 2018, 4:50 AM kiteh wrote: > Hi all, many thanks for getting back. > > It is upon the use of QSettings that I started to notice and wanted to > implement checking conditions, as what Michael has mentioned, especially > so, if there are 2 Maya sessions opened.. > Will look into

[Maya-Python] Re: Get the current Maya session

2018-08-27 Thread kiteh
Hi all, many thanks for getting back. It is upon the use of QSettings that I started to notice and wanted to implement checking conditions, as what Michael has mentioned, especially so, if there are 2 Maya sessions opened.. Will look into implementing callbacks then. Thanks again! -- You

[Maya-Python] Re: Get the current Maya session

2018-08-26 Thread Michael Boon
The way Maya itself handles this is to only save settings when you close Maya. I save settings from a lot of my tools using QSettings when they are closed and it generally works well. The most significant caveat is that you need to make doubly sure you handle exceptions when saving settings,