There is support in visual/__init__.py for pickling vectors:
import copy_reg
copy_reg.pickle(cvisual.VectorType, lambda v: (vector, tuple(v)),
vector)
It seems likely that someone could do something similar to support
pickling of graphics objects without having to add support to cvisual
itself.
Dave
> -----Original Message-----
> From: vis...@li...
> [mailto:vis...@li...] On
> Behalf Of Ryan Martens
> Sent: Thursday, July 19, 2001 10:47 AM
> To: vis...@li...
> Subject: [Visualpython-users] Persistance
>
>
> Is there any way in VPython to store graphics objects with
> persistance? If not, has anyone written a routine, where the
> objects in the current scene can be loaded or saved from
> stored data? I will be generating a default model from other
> data input by the user. The user will then be able to make
> some modifications to this model, and I would like to be able
> to save any changes. Thanks again, Ryan
>
>
> _______________________________________________
> Visualpython-users mailing list
> Vis...@li...
> http://lists.sourceforge.net/lists/listinfo/visualpython-users
>
|