Announcement

Collapse
No announcement yet.

setting output width and height in RhinoScript

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

  • setting output width and height in RhinoScript

    Is there a way to use RhinoScript to set the renderer's image output size?

    That is, I want to programmatically set the Width and Height in the Output tab of the Render Options dialog.

    - Rich Wells

  • #2
    Re: setting output width and height in RhinoScript

    It's very simple.
    1) don't use the override in Vray Option
    2) create a new button with a script that change the Rhino Render size properties.

    If you don't know how to do the num.2 let's look on the on-line help (function key F1) and seqrch for toolbar customization.

    You can do this by yourself for sure!

    -R-

    Comment


    • #3
      Re: setting output width and height in RhinoScript

      Originally posted by skysurfer
      2) create a new button with a script that change the Rhino Render size properties.
      But my question is, how do I do this from a script? What command or RhinoScript function would I use?

      - Rich

      Comment


      • #4
        Re: setting output width and height in RhinoScript

        Let me clarify a little further.

        Using the Rhino Renderer, I can use

        "-DocumentProperties Render Resolution Type Custom Height 1000 Width 1000"

        in a script to set the render output size to 1000x1000. I need the equivalent command for VRay.

        I tried "-visOptions", but even with the initial "-" it brings up the dialog. It doesn't appear to support a pure command line interface like DocumentProperties does.

        - Rich

        Comment


        • #5
          Re: setting output width and height in RhinoScript

          At the moment you can NOT access to any Vray option trough a script.
          So, I'm sorry, the only way it's to use the Rhinorender resolution as described in my prev post.

          If you want to use a script you can do the same by the scripted version of Rhinorender.

          -R-

          Comment


          • #6
            Re: setting output width and height in RhinoScript

            Originally posted by skysurfer
            If you want to use a script you can do the same by the scripted version of Rhinorender.

            -R-
            Unfortunately, I need to use V-Ray, not the built-in Rhino rendering module. I guess I'll have to keep using a different file for each resolution I want to render.

            - Rich

            Comment


            • #7
              Re: setting output width and height in RhinoScript

              Sorry Richard,
              probably I'm not able to explain me.

              The way you use for Rhinorender to set-up rendering dimension
              work ALSO for VrayforRhino.

              You can handle Resolution from the Vray Option or from Rhino Option also if you have VrayforRhino

              Try IT!

              Comment


              • #8
                Re: setting output width and height in RhinoScript

                Originally posted by skysurfer
                The way you use for Rhinorender to set-up rendering dimension
                work ALSO for VrayforRhino.
                Are you saying that setting the rendering resolution via _-DocumentProperties should affect the V-Ray resolution? I tried that, and I don't get that behavior.

                - Rich

                Comment

                Working...
                X