Is it possible to create a python script that contains a class definition, and then create instances of that class and keep them persistant in memory? What is the best way to do something like this?
I could store data using storage, but that is limited to dictionaries.
Object instances are a bit more elegant as they can contain functions for retrieving and organizing large complex data structures, such as combinations of lists, dictionaries, and properties.
The problem is that the object instances are not persistent (data is lost after each frame).
My situation:
I’m trying to create a custom 3D form generator, similar to L-Systems.
I love the L-systems node, and use it a lot, but it does have limitations, and I’d like to greatly expand beyond it. So I’m attempting to make a python script that will do what I would like. The parser generates a ton of data, which would be awkward to store in a table dat. But storing it in a python custom object would be very elegant.
I’m open to other alternatives, including storing the data in extensions. But I haven’t yet determined if that will work. Thought I should ask first before reinventing the wheel.
thanks in advance
Thomas