THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/10/2009 at 13:35, xxxxxxxx wrote:
Cinema 4D Version: r11
Platform: Windows ;
Language(s) : C++ ;
I have a general question. How can i save values over the time the plugin is running. I want to create an array of values to which I'd like to add a value every new frame. So that the array length is 0 at frame 0 and 50 at frame 50 for example. But where and how do I store such values and how do i create such a thing?
i think its something like baking particles work i guess but where do i find how it works?
thanks in advance for any help.
On 27/10/2009 at 14:11, xxxxxxxx wrote:
I'd use the GeDynamicArray as it can be sized up and down automatically. Do a search for it here for more information/code.
On 27/10/2009 at 14:45, xxxxxxxx wrote:
thank you. i hope that i can get the hang of GeDynamicArray
atm i face an error "missing ; before <"
edit: nevermind, i forgot to include ge_dynamicarray.h
On 27/10/2009 at 15:17, xxxxxxxx wrote:
ok.. got it working in a simple test script. one thing i still dont understand from what i have found here, can i create an array holding other arrays? How would i do that?
On 27/10/2009 at 17:05, xxxxxxxx wrote:
I did it like this:
Basically, the Root class represents an array item which each holds an array of nodes. As you can surmise, you need some defined class to act as the array type and elements. GeDynamicArray is a Template class and doesn't do anything on its own.
On 28/10/2009 at 00:48, xxxxxxxx wrote:
thank you. gonna try to get it working. anyhow, yesterday i had such a performance drop that i think if i use arrays of the array i created i'll get a system crash (?)