On Tue, Aug 28, 2018, 4:50 AM kiteh <[email protected]> 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 implementing callbacks then.
>


Oh sorry. I thought you meant dealing with new sessions within one Maya
instance as opposed to "session" meaning a second Maya process.
QSettings has a "sync()" method, which usually is called automatically for
you when the QSettings is being destroyed. But you could call it manually
at points when you want to flush your changes to the file and to pick up
external changes. You can still have to instances stomping on each other
but at least they can be writing their changes sooner instead of on Maya
shut down.
For multiple instances of Maya, you could check the process list for
running pids.


> Thanks again!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/3c806381-a6b4-4aaf-8db7-366c88ae871a%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/3c806381-a6b4-4aaf-8db7-366c88ae871a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3eLK6-%2Bdk6h03psiwJRKj6EMMG4ZUim-eNX3zAP%3DW8pg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to