Announcement

Collapse
No announcement yet.

scripting Output size

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

  • #16
    The button solution with fixed sizes is a temporary solution only. Most I need two resolutions for a project. I tried to define buttons, but it are a lot and the buttons are not right working some times, if the ratio option is enabled at the VfR options. Than the new ratio isn't used, the set one is keeped. Looks like I need to wait until enabling/disabling the VfR output is scriptable.

    Thank you for the effort.
    www.simulacrum.de - visualization for designer and architects

    Comment


    • #17
      An other idea - can be read the current set output size from the VfR options? If yes, than the preview button could read the size, multiply it with a percentage (f.ex. 25%) and set this render size, start a rendering and immediately set back the original size.
      www.simulacrum.de - visualization for designer and architects

      Comment


      • #18
        as you wish. the script will ask for the multiplication factor in the command line.

        --------------

        -_RunScript (
        Option Explicit


        Dim VRay
        Set VRay = Rhino.GetPluginObject("V-Ray for Rhino")


        Dim Width
        Dim Height
        Dim Mult


        Mult = Rhino.GetReal("Please enter scale factor for Render Output Size:")


        Vray.GetRenderOutputSize Width, Height


        Vray.SetRenderOutputSize Width * Mult, Height * Mult


        Rhino.Command "_Render"


        Vray.SetRenderOutputSize Width, Height
        )
        Last edited by fooprobe; 06-04-2013, 10:01 PM.
        emil mertzel
        vray4rhinoWiki

        Lookinglass Architecture and Design

        Comment


        • #19
          That is it! I setup a button with LMB 50% and RMB free input.

          Thank you very much,
          Micha
          www.simulacrum.de - visualization for designer and architects

          Comment


          • #20
            Happy to help!
            emil mertzel
            vray4rhinoWiki

            Lookinglass Architecture and Design

            Comment

            Working...
            X