Re: [MayaVi-users] script to generate an animation from a file set, offscreen

2011-04-04 Thread Giovanni Ghigliotti
Hi, the script t.py runs fine for me with mayavi2 -x t.py while with mayavi2 -x t.py -o I get always the same error: ERROR|2011-04-04 10:40:53,231|'MayaviOffscreen' object has no attribute 'engine' Traceback (most recent call last): File "/usr/bin/mayavi2", line 413, in run_script execfi

Re: [MayaVi-users] script to generate an animation from a file set, offscreen

2011-04-01 Thread Prabhu Ramachandran
On Saturday 02 April 2011 12:01 AM, Giovanni Ghigliotti wrote: Hi, adding the two lines print mayavi print mayavi.engine at the beginning of the script (run with mayavi2 -x script.py -o) gives: <__main__.MayaviOffscreen object at 0xc0fd4dc> ERROR|2011-04-01 11:30:24,454|'MayaviOffscreen' o

Re: [MayaVi-users] script to generate an animation from a file set, offscreen

2011-04-01 Thread Giovanni Ghigliotti
Hi, adding the two lines print mayavi print mayavi.engine at the beginning of the script (run with mayavi2 -x script.py -o) gives: <__main__.MayaviOffscreen object at 0xc0fd4dc> ERROR|2011-04-01 11:30:24,454|'MayaviOffscreen' object has no attribute 'engine' Traceback (most recent call last):

Re: [MayaVi-users] script to generate an animation from a file set, offscreen

2011-03-31 Thread Gael Varoquaux
On Thu, Mar 31, 2011 at 04:32:38PM -0700, Giovanni Ghigliotti wrote: > here there are more details on the fact that my script does not run with > the flag -o. > the command: > mayavi2 -x script.py -o > gives: > ERROR|2011-03-31 12:34:48,079|'MayaviOffscreen' object has no attribute > 'new_scene' >

Re: [MayaVi-users] script to generate an animation from a file set, offscreen

2011-03-31 Thread Giovanni Ghigliotti
Hi, here there are more details on the fact that my script does not run with the flag -o. the command: mayavi2 -x script.py -o gives: ERROR|2011-03-31 12:34:48,079|'MayaviOffscreen' object has no attribute 'new_scene' Traceback (most recent call last): File "/usr/bin/mayavi2", line 413, in run_s

Re: [MayaVi-users] script to generate an animation from a file set, offscreen

2011-03-30 Thread Gael Varoquaux
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

[MayaVi-users] script to generate an animation from a file set, offscreen

2011-03-30 Thread Giovanni Ghigliotti
Hi, I have two basic questions about scripting mayavi: 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 The script is here: -- mayavi.new_scene() s = mayavi.engine.curre