Announcement

Collapse
No announcement yet.

Vray standalone rendering multiple vrscenes

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

  • Vray standalone rendering multiple vrscenes

    Hi There.
    i have a scene in Maya wich i exported to .vrscene with a .vrscene for each frame.
    now i wanted to render the sequence in vray standalone. Is there a way to automatically render the sequence in the command line?
    i tried with " -frame = 1,110 " on the options for frame 1 to 110 but it only renders one frame.

    its getting really painfull to write every single render command.

    cheers
    Ricardo
    Ricardo Viana

  • #2
    If you have exported separate .vrscene files for each frame, then you'll need to write a simple shell script (or batch file on Windows) to cycle through the files and render them out.

    The format for the -frames option would be -frames=1-110 (note that it's "frames" and not "frame"), but this will only work if you exported the entire animation in a single .vrscene file.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Thanks Vlado. i'm on Mac. going to sort out some incremental shell script to make it work then . thanks
      Ricardo Viana

      Comment


      • #4
        Im not very confortable w shell so i did it with Python. In case someone needs it here goes

        in Terminal type:
        ---------
        python
        import os
        for i in range(1,110):
        os.system("/Applications/Autodesk/maya2012/Maya.app/Contents/vray/bin/vray -sceneFile='path_to_file_%04d.vrscene'" %i)


        -------

        worked like a charm
        Ricardo Viana

        Comment


        • #5
          Im not very confortable w shell so i did it with Python. In case someone needs it here goes

          in Terminal type:
          ---------
          python
          import os
          for i in range(1,110):
          [tab here]os.system("/Applications/Autodesk/maya2012/Maya.app/Contents/vray/bin/vray -sceneFile='path_to_file_%04d.vrscene'" %i)


          -------

          worked like a charm
          Ricardo Viana

          Comment


          • #6
            Is there a particular reason you wrote out a vrscene per frame? I've successfully used a single vrscene running on several machines just using the -frames='' command.

            On a related subject - Vlado, can you tell me what the syntax for frame step is? On ones it's easy -frames=1-100 but to run this on 2's is it -frames=1-100-2?

            Comment


            • #7
              Originally posted by duckie View Post
              On a related subject - Vlado, can you tell me what the syntax for frame step is? On ones it's easy -frames=1-100 but to run this on 2's is it -frames=1-100-2?
              -frames=1-100,2

              Best regards,
              Vlado
              I only act like I know everything, Rogers.

              Comment


              • #8
                hey,
                i'm trying to batch a couple of vrscenes with a simple DOS .bat file by setting the following up:

                vray.exe -sceneFile="X:\10 Projects\Kash_og_Zook\60_3D\Maya\scenes\vrscenes\R eflectionSign.vrscene" -frames=20-20,1

                vray.exe -sceneFile="X:\10 Projects\Kash_og_Zook\60_3D\Maya\scenes\vrscenes\A lley.vrscene" frames=20-20,1

                Now, the first job runs just fine, but when it finishes it never continues onto the next job. Should I be adding the -AutoClose=1 option to get this working or?
                Last edited by hellobard; 13-12-2012, 01:51 AM.
                /Bard
                www.hellobard.com
                Norwegian Broadcasting Corporation (NRK) - Motion graphics artist

                Comment


                • #9
                  You have two options here:
                  1. Use -display=0 - doesn't show a VFB
                  2. Use -autoClose=1 - closes the VFB at the end of the render

                  /Teodor
                  V-Ray developer

                  Comment


                  • #10
                    excellent, thanks Teodor
                    /Bard
                    www.hellobard.com
                    Norwegian Broadcasting Corporation (NRK) - Motion graphics artist

                    Comment

                    Working...
                    X