On 16/04/2014 at 16:45, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Say i wanted to dynamically store a short list of values - how would i achieve this?
The C4D docs recommend using BaseContainer to store data and retrieve using the typed methods ie GetLong, GetBool, GetVector, etc etc..
But say i need to hold a multidimensional array ( or just an array ) of data - how do i go about that?
Would i have to register for example std::vector as a customdatatype and use SetData() to store it?
Specifically what i am trying to do is store the UCHAR* pointer to the array created by BaseSelect.ToArray() inside a container so that i can retrieve it later. To complicate matters, the number of UCHARs i have to store is variable. I can
t see a way to do this..
Alternatively, if there is another way of storing the contents of a bunch of BaseSelect objects or their data for later retrieval i`d like to know it! There is no GeData equivalent for it or any compatible lists that i can see..
I`m probably completely overthinking this as a C++/C4D API noob, but at this point going round in circles and would appreciate some advice