On 23/06/2015 at 22:08, xxxxxxxx wrote:
I'm new to Cinema 4D Python SDK "but familiar with the C++ SDK".
I have a Python Generator , I'm reading data from files, I need to read data only once "storing it in memory", then use this data in the document "in animation".
I know that this question is kinda noob, but bare with me.
what confuses me:
* the generator will get executed at any frame, so how to make sure that the data is cached in memory so I can safely read it? i.e if it will run every frame, data will get erased after execution right?
so the behavior is something like this:
at first run, read files and cache data into memory, at other runs I will handle these data, I ask this question because in C++ this needs a class with Init and possibly some command buttons "too easy to do in C++".
in C++ plugin, there is a dll ".cdl64 for example" , and res folder, what is the equivalent in Python plugin?