@zipit said in Writing data to the .c4d file:
to (de-)serialize data outside a scene document you can either use c4d's
HyperFile(Link) or just use Python's own means to serialize/pickle data - like the modules
HyperFilehas the advantage that it can serialize some cinema specific data types (everything you can put into a
BaseContainer) out of the box. But it is binary, so it is not human-readable.
It mostly depends on what it is, that you want to serialize.
Thank you, @zipit. As I hinted at in the original post, I'd prefer not to save to an external file. When using the plugin I linked to in my last post, I don't have to load any external files. I click on the plugin tag and the poses I stored are available.
I'm trying to find a way to get this functionality. It can just be some simple text data. Any idea how to do this?