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

    Adding multiple cameras from a single file to the render queue

    Cinema 4D SDK
    python r23
    4
    22
    17.4k
    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.
    • ferdinandF
      ferdinand
      last edited by

      Hi @beezle,

      yes, I am on R23.110. I did test it on Windows and I just reran successfully the script for good measure. Regarding point three in my previous posting, I meant that you should print out the camera objects and file paths the script does generate for you and check if they "add up". So when you say that the files have the correct cameras activated, but the render queue manager does not, that is rather puzzling:

      1. Just to understand this correctly, the renders go through for you, right? You get the little green traffic light signals in the render queue, not the red ones, indicating an error?
      2. Have your tried clearing the render queue and then adding the files manually to see if the manger still shows the wrong camera?
      3. Since you did use my file, the render settings and the scene objects can be eliminated as possible causes, but I still would recommend removing all plugins to test if they are the reason for your problems.

      Cheers,
      Ferdinand

      MAXON SDK Specialist
      developers.maxon.net

      B 1 Reply Last reply Reply Quote 0
      • B
        beezle @ferdinand
        last edited by

        @zipit

        1. Yeah, the renders all go through. The "R" column is all green.
        2. Manually adding the cameras from the original file renders the corrects cameras. So does adding the cameras from the documents your script created. But interestingly, when I opened those files, and found the right cameras selected in each one, I added them to the render queue, and it queued up the wrong camera. It wasn't until I changed the active camera to a different one, and then reselected the correct camera that it queued up the right camera when I manually added it with the Render Queue's "Add Current Project" button.
        3. I haven't installed any plugins in this iteration of c4d.
        1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by

          Hi @beezle,

          I was able to reproduce your problem with the file you did sent us. The problem seems indeed to be connected to the fact if the document has a user chosen camera or just the editor camera. This behavior is most likely a bug - I am not sure though yet what conditions do make it appear and what not, as I was also now able to reproduce it with my file. I will report back when we have any further news.

          Cheers,
          Ferdinand

          MAXON SDK Specialist
          developers.maxon.net

          B 1 Reply Last reply Reply Quote 0
          • B
            beezle @ferdinand
            last edited by

            @zipit Thanks for looking into it!

            1 Reply Last reply Reply Quote 0
            • ferdinandF
              ferdinand
              last edited by

              Hi @beezle,

              just as a quick update, this issue has not been forgotten, but is still under inspection.

              Cheers,
              Ferdinand

              MAXON SDK Specialist
              developers.maxon.net

              B 1 Reply Last reply Reply Quote 0
              • B
                beezle @ferdinand
                last edited by

                @zipit Thanks for the update

                1 Reply Last reply Reply Quote 0
                • ferdinandF
                  ferdinand
                  last edited by ferdinand

                  Hi @beezle,

                  so I heard back from the devs now and:

                  1. This is a bug unrelated to Python, as I was able to reproduce the faulty behavior just in Cinema 4D.
                  2. The bug has been fixed and the fix will be published with one of the next service updates of R23 (I cannot guarantee though that it will be the upcoming update).
                  3. For now there is not much to do for you, since the bug is related to Cinema's take system and there is not much you can reasonably do to prevent it from happening.

                  So the only thing for you to do at the moment is unfortunately to wait for the update. You could technically try use RenderDocument or the NetRenderService to basically create your own render queue, but that would be of course a lot of work and also outside of the scope of the solutions we can provide here for you; but we will be happy to answer any questions you might have when you need and immediate solution and choose to take that route of implementing your own render queue functionalities.

                  Cheers,
                  Ferdinand

                  MAXON SDK Specialist
                  developers.maxon.net

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    beezle @ferdinand
                    last edited by

                    @zipit
                    That's quite alright. I still have the workaround of manually unsetting the active camera for now, so I don't have a problem waiting for the update. Thanks very much for looking into it.

                    1 Reply Last reply Reply Quote 0
                    • G
                      gsmetzer
                      last edited by gsmetzer

                      Sorry to resurrect this old thread but this workflow works amazing for our studio. My only question: Can you run this script without saving a multiple iterations of the source .c4d file to the OS? Or, is it possible to delete the source .c4d file iterations upon completion?

                      The goal is to run multiple render jobs from one file without making a mess of our OS file directory. Thank you for any help.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        m_adam @gsmetzer
                        last edited by m_adam

                        @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.

                        MAXON SDK Specialist

                        Development Blog, MAXON Registered Developer

                        1 Reply Last reply Reply Quote 1
                        • G gsmetzer referenced this topic on
                        • First post
                          Last post