PDA

View Full Version : Problem with an expression and the memory


bouledpue
03-30-2007, 08:11 AM
First, sorry for my bad English, I'll try to explain my problem.
Here is a scene, with 4 polyspheres and an expression running at each frame.
It just move all the vertex of the spheres.
http://axvaude.free.fr/temp/test7.mb

the expression
// for each sphere
for ($i=1;$i<=4;$i++) {
//for eah vertex
for ($j=0;$j<=1561;$j++) {
//move the vertex in the X axis
move -r $i 0 0 ("pSphere"+$i+".vtx["+$j+"]");
}
}

If you launch a batch render, you'll see that Maya spend more memory at each frame, but there 's no creation, just vertex moving.

This scene is juste an example, it's because I wrote a script to create some particle trails, and I have the same problem.

thank for helping.

alexnardini
03-31-2007, 06:41 AM
Hi bouledpue,

what you say is true, Maya allocate a lot of memory.

I think because Maya store in memory all the information necessary
for a possible "UNDO" if the user is not happy with the result of the script.

This mean that Maya for every frame store in memory all the info for every
vertex of your objects.

Running the command "flushUndo" help in deallocate all or part of the memory
that Maya deserve for the Undo.

Hope this help a bit.

Bye;
AlexNardini

bouledpue
03-31-2007, 07:24 AM
Yeah! It's works.
Thanks a lot alexnardini :thumbsup:

CGTalk Moderation
03-31-2007, 07:24 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.