Announcement

Collapse
No announcement yet.

Submitting multiple .vrscene files at once?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Submitting multiple .vrscene files at once?

    Hi there,

    We are working on a project that is going to require a lot of rendering and will have up to 95 render submissions to make which is obviously going to take a long to do one by one. Is there a way to batch submit multiple .vrscene files at once?

    Many thanks,
    Ben

  • #2
    Hi Ben,

    We have a Batch Submit feature but it depends on the 3D host app you are using. Can you please let me know what is the 3D host app you'll be submitting scenes from to Chaos Cloud?

    Thanks,
    Vladie
    Vladimir Dragoev

    Product Specialist

    Chaos Cloud

    Comment


    • #3
      Hi Vladie,

      The 3D host application is 3ds Max however that does not necessarily mean we will be submitting from inside of 3ds Max if there is a way of batch submitting .vrscene files via command line for example. We are open to the best way of achieving it as we are going to have up to 95 individual .vrscene animations to submit.

      Many thanks,
      Ben

      Comment


      • #4
        Yes, you could submit multiple .vrscene files via command line with the Chaos Cloud client which you already have installed. In interest of brevity from now on I will call a set of scenes a "batch". Scenes submitted as part of a batch end up in the same Cloud project. Batches are described in a JSON file and you will have to create it yourself. Normally it is created by the host application (such as 3ds Max) but it is not a complicated to do by hand. The batch file looks like this:

        Code:
        {
          "project": "Project Name",
          "scenes": [
            {
              "path": "path/to/file.vrscene"
            },
            {
              "path": "path/to/second/scene.vrscene"
            },
            {
              "path": "C:\path\to\third\simple.vrscene"
            },
            // .... and so on
          ]
        }
        Notice how every object in the "scenes" JSON array describes a single .vrscene file to submit.

        Let's say such the JSON file is created with the name "my-batch.json". Then in order submit all of the scenes described into it you will have to run the following command line:

        Code:
        ccloud job submit --batchFile my-batch.json
        For this you will have to use the correct "ccloud" executable name depending on the Operating System you are using. It is located in the following places:

        * Windows: %appdata%\Chaos Group\Cloud\Client\ccloud.exe
        * MacOS: /Applications/ChaosGroup/Cloud/Client/ccloud
        * Linux: $HOME/.ChaosGroup/vcloud/client/ccloud.bin

        So, for example, if you are using Windows the correct command-line command is:

        Code:
        %appdata%\Chaos Group\Cloud\Client\ccloud.exe job submit --batchFile my-batch.json
        Further information about the command line batch submission feature of the Chaos Cloud Client App (ccloud) could be found by reading its built-in help:

        Code:
        ccloud job submit --help
        Hope this helps you! If this looks like it may be of help to you then I could provide additional details about the batch file syntax and scene options.
        Last edited by doychin_atanasov; 24-11-2021, 12:08 AM.

        Comment


        • #5
          Thank you for this, will give it a test today and report back.

          Many thanks,
          Ben

          Comment


          • #6
            Originally posted by doychin_atanasov View Post
            Yes, you could submit multiple .vrscene files via command line with the Chaos Cloud client which you already have installed. In interest of brevity from now on I will call a set of scenes a "batch". Scenes submitted as part of a batch end up in the same Cloud project. Batches are described in a JSON file and you will have to create it yourself. Normally it is created by the host application (such as 3ds Max) but it is not a complicated to do by hand. The batch file looks like this:

            Code:
            {
            "project": "Project Name",
            "scenes": [
            {
            "path": "path/to/file.vrscene"
            },
            {
            "path": "path/to/second/scene.vrscene"
            },
            {
            "path": "C:\path\to\third\simple.vrscene"
            },
            // .... and so on
            ]
            }
            Notice how every object in the "scenes" JSON array describes a single .vrscene file to submit.

            Let's say such the JSON file is created with the name "my-batch.json". Then in order submit all of the scenes described into it you will have to run the following command line:

            Code:
            ccloud job submit --batchFile my-batch.json
            For this you will have to use the correct "ccloud" executable name depending on the Operating System you are using. It is located in the following places:

            * Windows: %appdata%\Chaos Group\Cloud\Client\ccloud.exe
            * MacOS: /Applications/ChaosGroup/Cloud/Client/ccloud
            * Linux: $HOME/.ChaosGroup/vcloud/client/ccloud.bin

            So, for example, if you are using Windows the correct command-line command is:

            Code:
            %appdata%\Chaos Group\Cloud\Client\ccloud.exe job submit --batchFile my-batch.json
            Further information about the command line batch submission feature of the Chaos Cloud Client App (ccloud) could be found by reading its built-in help:

            Code:
            ccloud job submit --help
            Hope this helps you! If this looks like it may be of help to you then I could provide additional details about the batch file syntax and scene options.
            This works like a charm so thank you very much for the tip!

            One question is if it is possible for force the following message to be a Yes when submitting?

            "Please update to [the latest V-Ray version](https://www.chaosgroup.com/vray/3ds-...urce=cloud-app) for consistency between local and Chaos Cloud results.
            Do you want to continue? [Y/N]"

            If we can force this to be a Yes we will have a found a really nice way to submit our renders for this project.

            Many Thanks,
            Ben

            Comment


            • #7
              Yes, you should use the "ignoreWarnings" flag of the "job submit" command like so:

              Code:
              ccloud job submit --ignoreWarnings --batchFile my-file.json
              Obviously, one has to be careful with this flag. It will ignore all types of warnings, not only the one you mentioned. Some may be important and not just an update prompt.
              Last edited by doychin_atanasov; 30-11-2021, 09:06 AM.

              Comment


              • #8
                Many Thanks!

                Comment

                Working...
                X