Page 1 of 1

maya dynamica memory leak

Posted: Tue Dec 17, 2013 9:09 am
by MOAB
Hi everyone,

It's been a while since I have fun with Maya Dynamica (maya 2014 + dynamica 2.81) and it's really a great plugin.

I'm currently working on a script that can deactivate/activate Rigid Bodies in different ways :
-by objects
-by bomb
-by mouse...

But I am facing a problem :
It's seems like maya dynamica has some memory leak issues.

e.g

--> Look at your memory before starting
--> Create a new scene
--> Create only a passive rigid body plane in your maya scene
--> Copy those lines of code into you script editor and execute

import maya.cmds as cmds

# It's like you are playing animation and you go back to the first frame
# you do this many times for tweaking the settings

for i in xrange(50):
cmds.currentTime(100)
cmds.currentTime(1)

--> Look again at your memory
--> The memory has increase and even if you create a new scene, maya doesn't release memory.

So if someone can test it and give me his results.
I did the same thing with Maya Bullet and I didn't have any problem. (but I don't like maya bullet).

Thanks in advance for your answers.