I discovered the WriteHyperFile and ReadHyperFile functions in class c4d.storage
It says, that it saves a GeListNode to a HyperFile and also that it can read a HyperFile and replace the actual Node.
Does this function Write completely write an object to a hyperfile?
Because the writing worked , it has written the file, but when I want to read , Cinema freezes.
I mean the write function says, it replaces the actual node with that one , which is saved in the HyperFile.
I'm sure I got it totally wrong
Here is the small code snippet of the Save Script, which saves the selected object into a hyperfile on disc
path = c4d.storage.SaveDialog(force_suffix="file")
c4d.storage.WriteHyperFile(doc,doc.GetActiveObject(),path,100)
and here is the code snippet for the Load script , which should load and replace the actual node with the saved one
path=c4d.storage.LoadDialog()
c4d.storage.ReadHyperFile(doc, doc.GetActiveObject(), path, 100)
So when I was younger everything was a lot easier