Hi Tim, Sorry about the delayed response. My own install of mayavi2 was not updated after the reorganization of the SVN tree.
Tim Bond wrote: > I've appended the script that I've used to do this. As far > as possible I've tried to follow examples from the example > scripts to minimise madness creeping into the code. > > The two problems I'm having are: > > 1) NONGUI_PLUGIN_DEFINITIONS doesn't appear to actually run > without a GUI; I'm guessing from comments and from the 'Tips' > section of the Mayavi site that this is a known issue and the > best bet for now is to stick with the xvfb hack. Is this the > case? Actually, the NONGUI_PLUGIN_DEFINITIONS simply lets you use mayavi without populating any of the menus or adding the mayavi tree view on the left that you normally get. The best way to do simpler script based visualizations is to use the newer approaches that are demonstrated by any of the newer scripts. streamline.py is one such example. For simple standalone non-envisage scripts you will want to see standalone.py and offscreen.py in the examples directory. https://svn.enthought.com/enthought/browser/Mayavi/branches/enthought.mayavi_2.0.3a1/examples All of this requires somewhat recent versions of mayavi. The more recent the better. To get hold of the latest version will require following the steps listed here: https://svn.enthought.com/enthought/wiki/Build/ETS_2.6.0b1/Py2.5/Fedora_7_i686 Just replace the "ets==2.6.0b1" with "ets==2.7.0b1", to get the latest. A release will be made soon. If you'd rather use an older release (which does contain standalone.py and offscreen.py) you can use the prebuilt eggs for the earlier ets 2.6.0b1 release. https://svn.enthought.com/enthought/wiki/Install > 2) When I reset the depth of my cut plane using: > > cp.implicit_plane.origin=(1, -1, od) [...] > I guess there is something I should call to update the > display having changed the plane origin, but I haven't been > able to track it down! Advice would be much appreciated. Ahh, this is a bug. I'll fix it in a moment. However, for the time being just do the following to work around the problem: cp.implicit_plane._on_interaction_event(1,1) # Any args would do If you update from SVN you won't need to do this. HTH. cheers, prabhu ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ MayaVi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mayavi-users
