On 23/12/2014 at 16:59, xxxxxxxx wrote:
How would I go about storing a custom type that inherits from c4d.BaseList2D inside of a c4d.documents.BaseDocument? Basically I want to create my own class of object similar to a LayerObject or RenderData and store it inside of a document.
Specifically, I'm trying to store a LayerComp class. I'm currently doing this by storing all of the data in a BaseContainer saved in the c4d.ID_BS_HOOK scene hook - but I don't get the benefit of animation, selection, or Undo support automatically.
I think I'm looking for something like document.InsertObject() - but for my own custom data type - and I don't see anything in the API for this specific case.