Welcome to Brazil for Rhino Sign in | Join | Help

Brazil for Rhino

Advanced rendering tools for professionals
Home Gallery Documentation Support Downloads Buy
in Search

Setting the Viewangle and the resolution

Last post 01-14-2010 5:14 AM by trojax. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-18-2009 7:35 AM

    Setting the Viewangle and the resolution

     Hi,

    I need to set my camera viewangle to 7.3° horizontal and 5.5° vertical. Furthermore, I need to set the output Resolution to 1200 Pixels horizontal and a vertical value corresponding to my view angles.

    Can you please help me by telling me how I can do this because I'm not to familiar with camera techniques.

    Is there any possibility to do this also with RhinoScript?

     

    Thank you very much!

     

    Daniel Jung

  • 11-18-2009 11:20 AM In reply to

    Re: Setting the Viewangle and the resolution

    Hi Daniel,

    Dale Fugier who does a lot of our RhinoScript support sent me this script when I showed him your question. Does this do what you need?

     

    Brian James

    Brazil for Rhino / Technical Support
    Robert McNeel & Associates
    www.mcneel.com
    www.rhino3d.com
  • 11-19-2009 2:47 AM In reply to

    Re: Setting the Viewangle and the resolution

     Hi,

    first of all thank you very much for the script.

    One small thing I found was that Rhino doesn't take any floating numbers for resolution. So I updated the skript only to calculate full numbers. But there is one problem I just don't get myself: 

    The skript does not set the viewangle correct so that when the script ends, the command line of Rhino is still longing for the viewangle input.

     Do you know a way to fix that?

     

    Thanks again!

    Daniel

  • 11-19-2009 7:36 AM In reply to

    Re: Setting the Viewangle and the resolution

    Hi Daniel,

    I just sent you an email. I think you'll need to speak with one of our scripting folks...

    Thanks,

    Brian James

    Brazil for Rhino / Technical Support
    Robert McNeel & Associates
    www.mcneel.com
    www.rhino3d.com
  • 11-19-2009 11:31 AM In reply to

    Re: Setting the Viewangle and the resolution

    Hi Danial,

    I've updated the script to fix the rounding oversite - thanks for catching this.

    Regarding the scirpt not setting the view angle correct and the script not ending, I am not able to repeat this in either V4 or the current V5 WIP. If you script is different than the one I've posted, feel free to email it to me (dale@mcneel.com) and I will take a look to see if I can find the problem.

     

    Dale Fugier
    Rhinoceros Development
    Robert McNeel & Associates
  • 01-14-2010 5:14 AM In reply to

    Re: Setting the Viewangle and the resolution

     Hi Dale,

     this works! thank  you!

    But one Problem left: how big has to be the focal distance now to get the right size of the picture? 

Page 1 of 1 (6 items)