Announcement

Collapse
No announcement yet.

Batch rendering -with Maya ".bat" file not working

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

  • Batch rendering -with Maya ".bat" file not working

    Hello,

    is there any other Vray software tool like a Render Slave, I need to activate?

    I have this content in the .bat file (and tried different versions:
    "C:\Program Files\Autodesk\Maya2018\bin\Render.exe" Render -r vray -s 1055 -e 1056 -cam "Mov1" "E:\MAYA_folder\scenes\my-render-file"

    The terminal window opens and closes after 2 seconds, that's all...

    Thanks,
    Ben



  • #2
    Try and add a new line at the end of your .bat and just write pause. This will prevent the terminal from auto-closing and you can see if there's any messages from Maya.
    At a first glance, I think you need to remove 'Render' after 'Render.exe'. So this line should in theory work:
    "C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r vray -s 1055 -e 1056 -cam "Mov1" "E:\MAYA_folder\scenes\my-render-file"
    Alex Yolov
    Product Manager
    V-Ray for Maya, Chaos Player
    www.chaos.com

    Comment


    • #3
      This is a bat file line Ive used that works fine. I think Yolov is right, the ""render" is probably causing the crash.

      "C:\Program Files\Autodesk\Maya2018\bin\render.exe" -r vray "D:\01_Automotive\Studio_Drift\Shots\Shot_005. mb"

      Its essentially the same as Yolov's. Swap out your Maya file directory and maya file name.

      Ive started using Smedge to manage my renders. Its free and works pretty well.
      Website
      https://mangobeard.com/
      Behance
      https://www.behance.net/seandunderdale

      Comment


      • #4
        Thanks,
        I removed "Render", no success.
        I tried "pause" but it just waits until I press a button.
        There came no messages from Maya...

        Comment


        • #5
          Just for sanity (not sure if upper or lower case matters) have you tried

          "C:\Program Files\Autodesk\Maya2018\bin\render.exe"

          instead of

          "C:\Program Files\Autodesk\Maya2018\bin\Render.exe"

          Also test it without the resolution override, and make sure you include the ".mb" at the end of your file name.
          Website
          https://mangobeard.com/
          Behance
          https://www.behance.net/seandunderdale

          Comment


          • #6
            Originally posted by BeneZ View Post
            Thanks,
            I removed "Render", no success.
            I tried "pause" but it just waits until I press a button.
            There came no messages from Maya...
            Try this way, seems to me that Windows fails reading the Render.exe path because of the space between "Program" and "Files"

            "%PROGRAMFILES%\Autodesk\Maya2018\bin\Render.e xe" -r vray -s 1055 -e 1056 -cam "Mov1" "E:\MAYA_folder\scenes\my-render-file.mb"
            Ivan Slavchev

            SysOps

            Chaos Group

            Comment


            • #7
              .....deleted
              Website
              https://mangobeard.com/
              Behance
              https://www.behance.net/seandunderdale

              Comment


              • #8
                Thanks, then it gives me a path error. This is the exactly the file path, that I also get from the windows explorer.
                I will make a simple test scene next week, maybe once also trying for comparison what maya2017 with the old vray is doing...

                Comment


                • #9
                  There is a space in Render.e xe - the forum didn't allow me to remove it for some reason?

                  Apart from that - the path is correct, but you might still need to escape spaces in Batch. It's possible that you are missing some variables - what's the output of the following in CMD
                  Code:
                  set | findstr /B "ProgramFiles="
                  Should be
                  Code:
                  ProgramFiles=C:\Program Files
                  Ivan Slavchev

                  SysOps

                  Chaos Group

                  Comment

                  Working...
                  X