Announcement

Collapse
No announcement yet.

Vray Frame Buffer + maxscript Bug

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

  • Vray Frame Buffer + maxscript Bug

    I think this might be bug.
    I use a maxscript to submit jobs to our renderfarm. Basically a simple submission scirpt that prompts you to enter in a file output location and submits a job. Without going into too much detail it looks something like this.
    Code:
    m = netrender.getmanager()
    m.connect #automatic "255.255.255.0" 
    myrend = renderers.current
    renderSceneDialog.close()
    myrend.output_on=true
    myrend.output_useram = true
    myrend.output_splitgbuffer = true
    myrend.output_saveFile = true
    myrend.output_splitRGB = true
    myrend.output_splitAlpha = false
    myrend.output_splitfilename = selectSaveBitmap()
    job = m.newjob ()
    job.name = "test"
    job.submit()
    The problem is that when I submit this, the servers render the job but there are no files being saved. However the tricky part is that when I go through the render interface and click the browse button and select the path and then run the same script I get the rendered frames. Even if I save that file and open it again and run the script I still get the files. The problem seems that there is a custom variable that gets set in max when you click the Browse button in the UI that doesn't when you just use a script to place a path.

    A way to reproduce this is make a new max file run this script - you should get a job named test in the backburner, the job renders but no frames are saved.
    Now go to render settings under vray frame buffer, click the browse button and select any filename you want and click save. Run the script again, set the path when it prompts you to do so and now the job should output the frames.

  • #2
    same here... that's crazy !!!
    Jérôme Prévost.
    SolidRocks, the V-Ray Wizard.
    http://solidrocks.subburb.com

    Comment


    • #3
      You need to set the "output_splitbitmap" parameter (this is what the Browse button sets), not the file name (which is just for display purposes).

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

      Comment


      • #4
        Thank you, but i've got some error... require bitmap, not string..
        perhaps have you an example ?
        Jérôme Prévost.
        SolidRocks, the V-Ray Wizard.
        http://solidrocks.subburb.com

        Comment


        • #5
          Hello,
          here is a sample piece of script, Max required for the birmap to be saved before assigning it, so You'll end up with an extra image written:

          outpath=(selectSaveBitmap())
          b=Bitmap 10 10 filenameutpath
          save b
          myrend = renderers.current
          myrend.output_on=true
          myrend.output_splitgbuffer = true
          myrend.output_saveFile = true
          myrend.output_splitRGB = true
          myrend.output_splitbitmap = b
          myrend.output_splitfilename = outpath

          Hope that will help.
          Best regards,
          Alexander
          Alexander Kazandzhiev
          V-Ray for 3ds Max developer

          Comment


          • #6
            many thanks ! i've found same kind of workaround... works pretty well now.
            Now solidRocks will manage output filename in a centralized single place, whatever you use the max or Vray frame buffer. Easier than never !

            Again, thank you for you help.
            Jérôme Prévost.
            SolidRocks, the V-Ray Wizard.
            http://solidrocks.subburb.com

            Comment

            Working...
            X