THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/06/2011 at 02:11, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform:
Language(s) : C++ ;
---------
I have an ObjectData plugin (generator object) which works fine in the editor. However, when I render to the picture viewer, my generated objects aren't rendered.
On stepping through the code, it appears that data structures in the plugin class which hold data needed to generate the objects have been re-initialised. This is logical: I understand that when rendering to PV, a clone of the document is rendered, which will copy the plugin class and therefore of course call its constructor and Init() function.
So my question is, how do I (or even can I) make sure that I have the data still available in the cloned document? Should I use an invisible tag to store the data - or will that also be re-initialised? I'm a bit puzzled as to how any object generator works when rendering to the PV if it's being reset whenever it is rendered there. Can anyone shed some light on this?
Many thanks,
Steve