On Wed, Mar 30, 2011 at 05:45:42PM -0700, Giovanni Ghigliotti wrote:
> 1) I have written a script 'script.py' that runs fine turning the GUI
> on:
>   mayavi2 -x script.py
> and does not work with the option -o (offscreen):
>   mayavi2 -x script.py -o

What does 'does not work mean'? If you tell a doctor that you are sick
without giving symptoms, the doctor cannot help.

> 2) I would like to create an animation starting from this script, by
> generating a series of images with mayavi.
> How can I make some kind of loop in order to read my files
> (my_file_0010.vtk, my_file_0020.vtk, ...) and generate outputs
> (test_0010.png, test_0020.png, ...), possibly with an offscreen option?
> I apologize for being completely new to python.

It is possible. There are several caveats, that are listed on:
http://github.enthought.com/mayavi/mayavi/tips.html#off-screen-rendering

HTH,

Gael

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to