On 12/10/2014 at 03:50, xxxxxxxx wrote:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
I'm wanting to add an object plugin to another dialog plugin, so that the dialog plugin can read my object plugin. But I'm a little lost as to how I'm suppose to implement this. I've tried adding the main class header file for the object plugin into the dialog project, and while it compiles, trying to get anything out of it doesn't work - e.g. things like trying to return a long value from one of the object plugin's functions always returns 1 regardless.
I've also played around with the virtual syntax on the object plugin's functions, but I'm getting mixed messages on what the virtual syntax is for, and when to use it.
Do I have to build a library for the object plugin for this to work? Or can I use the source files I already have for the object plugin inside of the dialog plugin build?
EDIT: I might just mention as well, that I'm reading the scene file in the dialog via LoadDocument() - so reading in memory, not in the active viewport document.