Visualize Results in Rhino
In this section, we downloaded the "visualization" output of a daylight-factor study in the web app. Now, we will see how we can download the "result" output and visualize it in Rhino.
Data needed for this visualization
Using the steps mentioned here, download the "results" output of the daylight-factor study instead of the "visualization" output.

This should give you a results folder with the following structure:
We will also need the original HBJSON file used for the daylight-factor study in this step.
App
Installing necessary libraries
importing libraries
Helper function to send a Honeybee model to Rhino
Helper function to send results as a colored mesh in Rhino
Helper function to send a Honeybee model and the results as a colored mesh in Rhino
Getting the host and saving in session state. Here, the host is Rhino. We need this to make the Streamlit app aware of the context. In this case, the Rhino environment.
Finally, visualizing the model and the results as a mesh in Rhino
Testing the App inside Rhino
First, run the pollination app. Here, were assuming that the name of the python file for the app is "app" and the file is in the current working directory.
Running the App
This should run the app at the following location in your browser:
Running the App inside Rhino
If you don't have already, download the Pollination Rhino plugin from here. Once you install the Rhino plugin, you should see the tabs for "Pollination" and "Pollination.Apps" in the sidebar of Rhino. If you don't, click on the gear icon shown in the image below;

Select the "Pollination" and "Pollination.Apps" on the menu that opens up

Next, click on the gear icon in Pollination.Apps. This will open up a new window.

In the panel, add the URL where the app is running and click on "Navigate to selection".

This should show the app inside Rhino.

Enter, the following values assuming the HBJSON file and the results are present in the current working directory. If not, provide full path to both.

Visualization in Rhino
Clicking the 'Submit" button should show the model and the mesh in Rhino that you can tun on and off and also bake as Rhino objects.

Last updated
Was this helpful?
