Announcement

Collapse
No announcement yet.

Frame Output Preview?

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

  • Frame Output Preview?

    I just thought of this idea and I think that it might help me out a lot. I dont have a fancy DR setup just yet, so having the RT rendering on is a lot on my computer. One thing that I thought might be nice to have, would be to be able to have a floating frame that would match whatever the output size would be. That way I dont have to go back and forth between rendering and adjusting the model so that it where I want it to be.

    Just an idea.

  • #2
    if you mean a safe frame, rhino has one, you can turn it on in the rhino options, or put this script in a button:

    (edit: having trouble pasting the code? try this link also)

    (edit: i tested the script below too, you can just cut and paste)


    -_RunScript (
    Call SafeFrame
    Sub SafeFrame()
    Dim Vray
    Set Vray = Rhino.GetPlugInObject ("V-Ray for Rhino")

    If IsNull(Vray) Then
    Rhino.Print "V-Ray for Rhino Scripting Plugin Not Loaded"
    Exit Sub
    End If

    Dim imgW, imgH
    Call Vray.GetRenderOutputSize (imgW, imgH)
    Rhino.RenderResolution Array(imgW, imgH)
    Rhino.Command "-_RenderSafeFrameOptions visible enter", False

    End Sub
    )
    Last edited by fooprobe; 26-02-2013, 10:45 AM.
    emil mertzel
    vray4rhinoWiki

    Lookinglass Architecture and Design

    Comment


    • #3
      Great, thank you for the script. My last one isn't working anymore.

      I suppose so the formating is a problem, if I copy the new script to a button, than it stop with an error. What do you think?
      www.simulacrum.de - visualization for designer and architects

      Comment


      • #4
        sorry, that's my fault for posting so late at night and not checking everything first. when i paste code into the post directly, the formatting gets messed up and the code is not usable, so i deleted that. and there was a formatting error in the code in the link, i fixed that, it should work now if you paste the code from the link into a button.

        this is a toggle switch. it doesn't automatically detect when you change the output size, so to update the safe frame you have to turn it off and then turn it on again after you change the output size.
        emil mertzel
        vray4rhinoWiki

        Lookinglass Architecture and Design

        Comment


        • #5
          Wow, thanks! That really useful!

          Comment


          • #6
            If I remember right, Damien Alomar wrote it way back when...
            emil mertzel
            vray4rhinoWiki

            Lookinglass Architecture and Design

            Comment


            • #7
              Works perfect now.

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

              Comment


              • #8
                Was just about to post the need for a safe frame that was connected to the VfR output, but you guys are already on it! GREAT work!

                Comment

                Working...
                X