Announcement

Collapse
No announcement yet.

#output_splitbitmap and maxscript

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

  • #output_splitbitmap and maxscript

    Hi,

    I don't know what to do with #output_splitbitmap,

    if I don't set a value the ouput_splitRGB isn't saved, I am struggling.

    I am experimenting but a little help would be welcomed...

  • #2
    Look at the "Bitmap values" section of the MaxScript documentation here:
    http://help.autodesk.com/view/3DSMAX...09634C1304_htm

    First you need to create a Bitmap object, then set its properties (file format etc), and then assign to the output_splitbitmap parameter of the renderer.

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

    Comment


    • #3
      Thanks,

      I think I managed something by overwriting over and over the same bitmap .exr format but still don't know if I am saving the proper channels...
      I feel stupid for not checking this before as my previous tests were done with me manually setting the output and thinking it would work fine...
      All my renders I sent without checking manually the checkbox were rendered without saving...

      Comment


      • #4
        I am facing all these problems after trying to make use of the denoising tools...
        I use to use the output raw in exr and it was so easy to setup...
        Now I am facing the problem that only RGB is denoised, not the alpha...
        Very troublesome for compositing, plus all the multimattes not denoised.
        Will there be a sp dealing with all this?

        Outputting the full raw is not an option for us as the network is too slow to deal with the huge files it outputs, whatever compression I tried...

        Comment


        • #5
          Not sure if this will help you, but in one of my older scripts, I used this to save both RAW and Split channels (this was before the Denoiser was implemented)
          Code:
          rc=renderers.current
          
          -- Set Save Location and then Render
          function SaveAndRender =
          (
              RAWFile = getSaveFileName caption: "Save V-Ray image file" \
              filename: "C:/_VRay RAW Renders/" \
              types:"V-Ray image files (*.vrimg)|*.vrimg"
          
              if RAWFile!=undefined then
                  (
                      rc.output_saveRawFile=true
                      rc.output_splitgbuffer=true
                      rc.output_rawFileName = RAWFile
                      RAWSplitChannelFile = (getFilenamePath RAWFile) +  (getFilenameFile RAWFile) + (getFilenameType "*.exr")
                      rc.output_splitfilename = RAWSplitChannelFile
                      tmpbm = Bitmap 10 10 fileName:RAWFile
                      save tmpbm
                      rc.output_splitbitmap = tmpbm
                      max quick render
                      close tmpbm
                      free tmpbm
                  )
          )
          Kind Regards,
          Morne

          Comment


          • #6
            Thanks a lot!

            I came to a very close code, asking the question is usually already getting you closer to the solution!

            Appreciate the help!

            Comment

            Working...
            X