Hello everybody
I am trying to develop a scripted plugin in python
In this plugin I go through all the voxels to get their position
for x in range( resX ):
for y in range( resY ):
for z in range( resZ ):
voxPos=fluidVoxelInfo( fluidName, voxelCenter=True,
xi=x, yi=y,
zi=z)
...
When running this plugin I can see the memory increasing but it never
flushes
I started debugging by commenting out everything and I then figured
out that the problem was in the loop
and in this loop was left only this line:
voxPos=fluidVoxelInfo( self.__fluid__, voxelCenter=True, xi=x, yi=y,
zi=z)
my idea is that the variable voxPos is not reused and some new part of
the memory is allocated...
I thought that python managed memory and variables by itself
so I am not really sure of what I am stating there...
does anyone already got this kind of issue? or smells where it can
come from?
maybe there is a python command to force a variable to flush? this can
be an interesting test but I dont know such command
thanks a lot for your help
best regards
Bruno
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---