Grasshopper

algorithmic modeling for Rhino

Hi,

I am interested saving a bunch of views for rendering and then process them through a custom batch file.

Is it possible to capture viewport coordinates and view direction from Rhino viewport in Honeybee ? I know that it is possible to create renderings through Honeybee_Run daylight simulation. Is there a way to bypass the whole rendering process and only extract the view files instead ?

Typical configuration of a view file looks like this (vp and vd correspond to viewpoint and view-direction respectively):

rvu -vtv -vp -5.412320 -343.990701 15.513205 -vd 0.205170 0.978726 0.000000 -vu 0.000000 0.000000 1.000000 -vv 35.0 -vh 69.1823210963438 -vo 0.0 -va 0.0

Thanks

Views: 452

Replies are closed for this discussion.

Replies to This Discussion

Hi Sarith, If you haven't already figured it out here is how you can do it.

Honeybee has a function exportView that does export the views. You can easily modify the function to do what you need: (https://github.com/mostaphaRoudsari/Honeybee/blob/master/src/Honeyb...)

In case you don't want to deal with the code, you can connect multiple view names to imageBased recipe. Then only set writeRad to True. All the views will be written in the file in the rpict line and you can copy-paste them into your file.

Hope it helps,

Mostapha

Thanks Mostapha. I did figure it out from your source code a while ago.

By the way, the Feb_01_2015 version of RunDaylightSimulation does not have an output node for HDR files.Is that intentional ?

I was able to "fix" mine by adding an output of the same name referred to in the source code.

Hi Sarith,
It's definitely not . Results output should be renamed after the simulation and outputs the files. I checked with the latest version and it works fine on my system so I assume it has been fixed at some point. Thanks for reporting!
Mostapha

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service