Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    GetActiveDocument vs command line render

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 130 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post