Controlling memory usage for yafray renders

Hi everyone,

I am trying to keep memory usage under control for renders using yafray which sometimes go haywire (this is happening on a server which may crash as a result.)

The renders are being done from the command line using the Python API, so I’ve been trying to set the SceneMode (to save memory) without success:

context = Scene.GetCurrent().getRenderingContext()
context.sceneMode = Render.SceModes[“SAVE_BUFFERS”]

… but I get an error saying the contant dict does not have that key. Is that the right way of setting the sceneMode? When I print Render.SceModes it appears to be an empty dict. I am missing something obvious? Is the functionality not implemented yet? Thanks in advance…