Announcement

Collapse
No announcement yet.

Rendering with vrend MEL command doesn't change render resolution

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

  • Rendering with vrend MEL command doesn't change render resolution

    I'm trying to write a script which does a quick render with some low quality settings and down-sizes the render, however this snippet doesn't work for me...

    mel.eval('vrend -camera persp -width 1000 -height 480')

    It just renders, but it doesn't change the render size.... any ideas?
    Maxscript made easy....
    davewortley.wordpress.com
    Follow me here:
    facebook.com/MaxMadeEasy

    If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

  • #2
    vrend doesn't accept resolution. You must change directly the vraySettings node:

    Code:
    setAttr "vraySettings.width" 1000;
    setAttr "vraySettings.height" 480;
    V-Ray/PhoenixFD for Maya developer

    Comment


    • #3
      Ok thanks, for some reasons those attributes didn't come up in the listener with echo all commands on.
      Maxscript made easy....
      davewortley.wordpress.com
      Follow me here:
      facebook.com/MaxMadeEasy

      If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

      Comment


      • #4
        I'm getting issues when I run the vrend()
        It doesn't render anything and I get this error

        cmds.vrend()
        # Warning: Created the file path for /_tmpTileTest_Proj_A_05. #
        # Error: Cannot get the object for the current render layer: #
        # Error: Cannot create output image file "/_tmpTileTest_Proj_A_05.jpg": Permission denied (13) #

        Where is the file saving?
        How do I disable saving to file when rendering?
        Maxscript made easy....
        davewortley.wordpress.com
        Follow me here:
        facebook.com/MaxMadeEasy

        If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

        Comment


        • #5
          setAttr "vraySettings.dontSaveImage" 1;
          V-Ray/PhoenixFD for Maya developer

          Comment


          • #6
            Thanks, that fixed it.

            Any idea why I always get this error when doing using vrend?

            # Error: Cannot get the object for the current render layer: #
            Maxscript made easy....
            davewortley.wordpress.com
            Follow me here:
            facebook.com/MaxMadeEasy

            If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

            Comment


            • #7
              You can fix this by passing
              Code:
              -layer defaultRenderLayer
              to vrend. I don't think that you will have any issues even without it, but this is what the normal rendering does.
              V-Ray/PhoenixFD for Maya developer

              Comment


              • #8
                Great!

                cmds.vrend("-layer", "defaultRenderLayer")

                Works!
                Maxscript made easy....
                davewortley.wordpress.com
                Follow me here:
                facebook.com/MaxMadeEasy

                If you don't MaxScript, then have a look at my blog and learn how easy and powerful it can be.

                Comment

                Working...
                X