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:	44
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

              Working...
              X