>>>>> "Jaime" == jcisternas <[EMAIL PROTECTED]> writes:
Jaime> <font size="2">Hi Prahbu,<br>Sometimes I create a scene
Jaime> from the Python Interpreter,<br>let's say:<br><br>import
Jaime> mayavi<br>v=mayavi.mayavi()<br>d =
Jaime> v.open_vtk('paths.vtk',0)<br>m =
Jaime> v.load_module('PolyData',0)<br><br>and then decide that I
Jaime> want to use a different module<br>or different data, other
Jaime> than paths.vtk.<br>How can I delete (from the interpreter)
Jaime> the module<br>or the data file?<br><br>Jaime<br><br></font>
This will only let you delete the currently active data and module.
It isn't easy (but is possible) to delete an arbitrary module. This
is a lot easier with mayavi2.
Deleting data (the data viz manager):
v = mayavi.mayavi()
d = v.open_vtk('foo.vtk')
v.del_dvm_gui()
Deleting the current module:
o = v.load_module('Outline)
dvm = v.get_current_dvm()
mm = dvm.get_current_module_mgr()
del o
mm.del_module_gui()
cheers,
prabhu
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users