I asked a similar question on the autodesk subscription forums a while ago.

There response follows:

"Hi Ian,

>From mayapy if you run help(‘maya.standalone’) you’ll see that it has
only one function initialize(), so to restart Maya you need to exit
the parent python process.

I have opened a Service Request # 1-4914842102 on your behalf and I’m
going to log a SUG on it.

Regards,
Avto"

So you essentially can't.

However I was able to work around the issue by using the
multiprocessing (http://docs.python.org/library/multiprocessing.html
py2.6) and pyprocessing (2.4/2.5) packages.
This way I ran maya in another process and was able to capture the
results. Not quite the same but I've been able to get it to work for
me.

Ian



On Thu, Mar 12, 2009 at 9:56 AM, [email protected]
<[email protected]> wrote:
>
> In python idle I hav initalized maya with standalone module.
> After workin on it.. i would like to terminate the initialized maya
> modules ...
> how do i destroy initialized maya, even if i del the
> maya.standalone.... my pythonw... is running with huge memory
> consumption. how to kill/destroy/del the maya standalone.
> Its troughing memory exceptioin each time i close my python idle.
>
> >
>

 ask

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to