Announcement

Collapse
No announcement yet.

vray save framebuffer via python maxscipt?

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

  • vray save framebuffer via python maxscipt?

    Hello everyone. i have a problem.
    i would like to create a maxscript with python that saves my image from vray's framebuffer.

    i have tried various ways but i have not found a working solution. Could someone please help me? I would just need the line of code that would allow me to save the render to a local folder. If it would help, the save render I would like to put it inside a compute loop of some images.
    Render and Animation - WWW.IMERGO.IT

  • #2
    Originally posted by Karonte View Post
    Hello everyone. i have a problem.
    i would like to create a maxscript with python that saves my image from vray's framebuffer.

    i have tried various ways but i have not found a working solution. Could someone please help me? I would just need the line of code that would allow me to save the render to a local folder. If it would help, the save render I would like to put it inside a compute loop of some images.
    This docs page holds all the available parameters that can be controlled in the VFB via MaxScript. I presume your Python script can call those functions.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      thanks. i read the docs and used : rt.execute("vfbControl #clearimage") and rt.execute("vfbControl #close")​ to access to vfb methods. for render i used rt.render()
      Render and Animation - WWW.IMERGO.IT

      Comment


      • #4
        Code:
        rt.execute("vfbControl #saveimage \"D:\MYIMAGE.JPG\"" )
        all these work as well, ofc.
        Click image for larger version

Name:	image.png
Views:	64
Size:	53.7 KB
ID:	1226472
        Lele
        Trouble Stirrer in RnD @ Chaos
        ----------------------
        emanuele.lecchi@chaos.com

        Disclaimer:
        The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

        Comment


        • #5
          Grazie ^Lele^. I am creating a loop to save 10 images. the problem is that even though Vray's framebuffer works, 3dsmax's framebuffer opens every time, so I have 10 framebuffer windows . is there a way to disable 3dsmaxframe buffer to open?( like normal vray render)
          thanks
          Render and Animation - WWW.IMERGO.IT

          Comment


          • #6
            Prego!
            Max's own
            Code:
            rendShowVFB​ off
            should work, does it not?
            Lele
            Trouble Stirrer in RnD @ Chaos
            ----------------------
            emanuele.lecchi@chaos.com

            Disclaimer:
            The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

            Comment


            • #7
              it works. Thanks again
              Render and Animation - WWW.IMERGO.IT

              Comment


              • #8
                Hi,

                Just wondering, normally i save multiple image with batch render, is there anything wrong with batch render?
                Best regards,
                Jackie Teh
                --

                3ds Max 2023, V-Ray 7 [7.00.05 build 32980]
                AMD Ryzen 9 7950X 16-Core Processor@4.50 GHz | 64GB RAM | Nvidia RTX 4090
                Website: https://www.sporadicstudio.com
                Email: info@sporadicstudio.com
                YouTube: https://www.youtube.com/c/SporadicStudio

                Comment


                • #9
                  Originally posted by jackieteh View Post
                  Hi,

                  Just wondering, normally i save multiple image with batch render, is there anything wrong with batch render?
                  Absolutely not.
                  It's also rather helpful to render variations, when coupled with scene states.
                  Lele
                  Trouble Stirrer in RnD @ Chaos
                  ----------------------
                  emanuele.lecchi@chaos.com

                  Disclaimer:
                  The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

                  Comment

                  Working...
                  X