hi,@chris
I believe you can answer the questions I have in this post.
First of all, I would like to express my gratitude to you and all the members of the Ladybug Tools team. I really like the updated Dump Visualization Set component in LBT 1.9. This component can enhance the current demonstration process I am using.
I attempted to create a custom Visualization Set using the Ladybug Tools SDK, but encountered some issues during the process. Although it is possible that there were obstacles due to my insufficient understanding of the SDK, I still wanted to confirm if there were any better solutions.
Question 1:
I attempted to interact with my created simple Honeybee Model using the Ladybug Tools SDK in order to quickly create a vis_set. However, an unexpected bug occurred. In Grasshopper, I was using Python3 Script and connecting to the Python environment provided by Ladybug Tools.
My code consists of just two lines and uses the "model to vis_set "class.
from honeybee_display.model import model_to_vis_set
vis_set = model_to_vis_set(model)
Traceback (most recent call last):
File "rhinocode:///grasshopper/1/c320776a-0076-4936-a810-262859873679/5264f090-1eeb-4066-8e4e-0259480feac2", line 3, in <module>
File "C:\Program Files\ladybug_tools\python\Lib\site-packages\honeybee_display\model.py", line 134, in model_to_vis_set
for face in model.faces:
AttributeError: 'Object_2$2' object has no attribute 'faces'
I attempted to use the example provided on the pollination forum. In that example, it was possible to interact normally with files in the .hbjson
format.
So I guess whether for some reason, it prevented me from using this “class” correctly in the SDK?
Question 2:
I searched through the relevant posts on two forums, and it seemed that almost no one discussed how to customize the creation of Visualization Set. What I would like to know is whether there are any demonstrations available that can guide on how to create a Visualization Set? For me, it would be sufficient to be able to add a Heat Map within the wireframe of the Honeybee Model, just like in the demonstration image released with LBT 1.9.0.
I hope that anyone can answer these two questions.
best.
zhengrong