Hi guys,
as the title already suggests I wonder how we are supposed to permanently store data. With permanently I mean storing data from for example a layer that will still be accesible after a document was closed and opend again.
I know that we can store data in a nodes c4d.BaseContainer
. But doing so I found that one can not simply store whatever python object one likes in it. For example the dictionary one gets from layer.GetLayerData(doc)
can not be stored in the container as it is, right?
So, am I really supposed to put every single attribute of given dictionary as a single entry in a c4d.BaseContainer
or is there a simpler/better way to do this?
And how would one store a nodes unique id (C4DAtom.FindUniqueID(c4d.MAXON_CREATOR_ID)
) along with the data in that container? As I learned that this unique id is the safest and only way to identify a certain node.
Cheers,
Sebastian