Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. beezle
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 13
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by beezle

    • B

      Adding multiple cameras from a single file to the render queue

      Cinema 4D SDK
      • python r23 • • beezle
      22
      0
      Votes
      22
      Posts
      17.4k
      Views

      M

      @gsmetzer said in Adding multiple cameras from a single file to the render queue:

      My only question: Can you run this script without saving a multiple iterations of the source .c4d file to the OS?

      Sadly, this is not possible, you are forced to create a c4d file each time. However this is a feature we will tackle in the future, but I can't say when neither give any guarantee.

      Or, is it possible to delete the source .c4d file iterations upon completion?

      You can iterate all elements, call GetElementStatus and check for its finish state.
      If you need help to achieve that please open a new topic.

      Cheers,
      Maxime.

    • B

      Changing camera/take/render setting in the render queue

      Cinema 4D SDK
      • • • beezle
      3
      0
      Votes
      3
      Posts
      988
      Views

      B

      @m_adam Thanks. I gave that a shot, but unfortunately, it's still adding multiple copies of the same camera. Am I doing something wrong?

      docs = c4d.documents doc = docs.GetActiveDocument() cams = getSelectedCameras(doc.GetActiveObjects(0)) path = doc.GetDocumentPath() cFile = path + '\\' + fName queue = docs.GetBatchRender() queue.Open() base = doc.GetActiveBaseDraw() for cam in cams: docs.LoadDocument(cFile, c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS) base.SetSceneCamera(cam) docs.SaveDocument(doc, cFile, c4d.SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST, c4d.FORMAT_C4DEXPORT) queue.AddFile(cFile, queue.GetElementCount())