Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 31/05/2010 at 08:23, xxxxxxxx wrote:
User Information: Cinema 4D Version: 11.5 Platform: Windows ; Language(s) : C++ ;
--------- Hi,
Whenever I launch Cinema4D 11.5 from a command line (to render a frame without any GUI, typically) then, in my plugin, GetActiveDocument() always returns a pointer to an empty document (named "Untitled 1"), and there is no way to get the document which has actually been loaded (the document created from the scene indicated in the command line options)
Even GetFirstDocument returns the same, empty, document, with no children documents when i call GetNext() on it.
I could work around this by using the document passed to the InitRender callback, but it is problematic in my case, because there are some important information in the file which i need to link to my own objects just after the loading of the scene.
Is it a bug in the SDK, or is it normal that GetActiveDocument had this particular behavior in command line mode?
Thanks, Ben