How do you want to change the sky color? There are some ways to tweak the sky on the SDK layer of the LBT plugin but they might not be what youâre looking for.
Annual simulations are very different from point-in-time ones. Thereâs always a way to hack it but itâs much harder to customize annual simulations than point-in-time ones.
I would like to use a constant color for all the hours of the annual analysis. I think I can do this by using the -c option in gendaymtx. Is there a way to change it with the LBT plugin?
In that case, it sounds like you just want to use the HB Certain Illuminance sky component. Youâll see in the SDK Docs for that sky that it is equivalent to the following Radiance command:
Ah, I see. Sorry that I was looking at the wrong Radiance command and didnât realize that you were trying to customize the annual simulations and not the PIT ones. We donât have anything exposed on the SDK layer that would allow you directly access the gendaymtx -c option from Grasshopper but everythingâs open source and so you only have to edit a line of code in a .py file of the core libraries if you want to access this.
Here is where the recipe is setting the options for gendaymtx command:
If youâre on Windows, you should be able to find this file in this location:
Is there a way to do it though so that the RGB values in the tuple are input from Grasshopper?
And an additional question: Are the opt.d (sun only) and opt.s (no sun) accessible from Grasshopper?
I would like to create a workflow where I run a sun-only simulation with the -c option for color of the sun and a no-sun simulation with the -c option for the color of the sky and as a result I get the 3-channel irradiance values (for sun and for sky) instead of illuminance. Can I create my own recipe for this to make it a bit more flexible without having to change the sky.py file every time? I see that the HB Annual Daylight component uses this:
recipe = Recipe(âannual-daylightâ)
Can I make my own âcolored-annual-daylightâ recipe to do what I described?
The short answer is ânot easily but thereâs always a way to hack it.â The fastest/hackiest way to do it is just write a GHPython component that edits that .py file, adding in the lines of Python that you want when the component runs. Then, when you go to run the recipe, the new/edited Python code would be used.
If youâre interested in implementing a longer-term solution thatâs not nearly as hacky, I think weâd accept a code contribution that exposes the Radiance parameters for sky generation. The first step would be to expose these radiance-paramters on that command in the .py file that youâre editing. If you end up sending a Pull Request to the Honeybee-Radiance repo that does this, I would be happy to review and merge if itâs all good. Then, we can work towards exposing these parameters on the recipe.