Replies: 1 comment 2 replies
-
This would be a great feature but no Java object can be pickled. Also, Processing links the PShape objects to the parent PApplet that created them. Loading a Py5Shape object from a pickle file would result in crazy errors, as that parent link would no longer be valid. However, this is a useful feature. The way to implement this would be for Processing4 to add a save method to PShape. The relevant data could be saved to a file and then loaded back. Adding the feature to Processing would also add the feature to py5. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know this strays a bit from the priorities of making Processing 4 things work but...
This could potentially be handy. Here some crazy ideas that passed my mind:
save_shape()
could initially just serialize a Py5Shape object (andload_shape()
would have to be modified to identify and load it back, maybe using a.py5shape
extension);load_shape()
can already load).Beta Was this translation helpful? Give feedback.
All reactions