From: Rochus S. <roc...@ch...> - 2000-11-23 16:32:38
|
Hi, sorry to bug you with one more question: is there a way to delete a vpython object? I know that I can make it invisible. but if I say: s=sphere() del(s) the sphere remains (I just lost the python object to tweak it :-) in my case a molecule is displayed along a reaction coordinate. the number of bonds (=cylinders) varies with the geometry. soemtimes a bond may appear and vanish a couple of frames later. it would be a lot of bookkeeping to decide whether there are still invisible objects to switch on or a new cylinder must be created. I could just generate a lot of cylinders and switch them to invisible but that seems not very elegant to me? did I miss something? couldnt find anything in the docs, nor looking at the functions in the visual module or in the demos. what can I do? all the best, rochus -- Dr. Rochus Schmid Technische Universität München Lehrstuhl f. Anorganische Chemie Lichtenbergstrasse 4, 85747 Garching Tel. ++49 89 2891 3174 Fax. ++49 89 2891 3473 Email roc...@ch... |