THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/09/2004 at 22:23, xxxxxxxx wrote:
Cinema 4D Version: 8.503
Platform: Windows ;
Language(s) : C++ ;
Instead of using member variables and implementing Read(), Write(), and CopyTo(), I'd like to know if BaseContainer BaseLinks can be used to store a reference to a BaseSelect (or its originator tag) or a tag so that persistence is retained when saving and loading the C4D file.
Also, is there any way to store arrays in BaseContainers? I cannot find any information that would make it possible except through CustomDataType (which seems very far to go to store an array of values - "Yeah, I need a PluginCafe ID to store 2 CHARs in a BaseContainer" - Okay, I exaggerate, but, come on. Makes using member variables and implementing seem easier. void* has worked for decades...
On 07/09/2004 at 11:13, xxxxxxxx wrote:
Got the hang of BaseLinks - they work well. Guess it's the ole' Read, Write, 'Rithmetic for the arrays!
On 10/09/2004 at 16:48, xxxxxxxx wrote:
Hey Robert...I've been trying to figure out exactly this problem. As far as my research and question-asking has revealed, you can't store an arrray in a BaseContainer object. But from what I'm gleaning from your post it looks like the way to go is via a BaseLink? Would you mind sharing additional details on your findings? I would greatly appreciate it!
On 10/09/2004 at 17:43, xxxxxxxx wrote:
BaseLink needs a defined library type (e.g.: Tbase or Obone). Even if you could get the array into a CustomDataType that could be linked into a BaseContainer, you would still need to eventually (down the line) implement Read, Write, and CopyTo in order to save and retrieve the array from file or copy it with a Copy operation.
See my other reply for how I implemented these in the TagData.
On 10/09/2004 at 22:08, xxxxxxxx wrote:
Just caught the other reply. Thanks man, you really helped me out a great bit by confirming and elucidating some things I supsected.