The Python interpreter and Maya run in the same process, so this is expected.
If your multiprocessing doesn't require access to your current session, then you may consider instead launching mayapy explicitly (either from or outside of Maya), and from there use the multiprocessing module. That would create additional instances of mayapy instead which may be what you want. On 17 July 2018 at 07:43, Ruchit Bhatt <[email protected]> wrote: > Hi, > I tried multiprocessing module in maya python with basic example and every > time it returns new maya instance plus > > object of multiprocessing.Queue() returns nothing on object.get() > is python interpreter is not a separate process in Maya ? > please share efficient example on how to deal with multiprocessing in Maya. > Thank you > > -- > 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/ca05daed-3c24-43de-829c- > 9ca8aa2f7725%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/ca05daed-3c24-43de-829c-9ca8aa2f7725%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/CAFRtmOCwVF05XD4aYq9Bmr94-jpHmPB526AXLxwb%3D5HwXRgvnQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
