Hey everyone,
I have a problem with my python script in grasshopper. So far I have made a script that interpolates some data which I need to now solar radiation in relation to windows orientation. This works fine. I have another script that takes window geometry and finds orientation, slope and area which is needed for my calculation. Also works perfect. My idea is to make one script that does it all so I don’t need too many components since it gets a bit confusing with the outputs. The problem is quite simple. When I take my window mesh from grasshopper and puts it in to the script that does the interpolation it makes the interpolation script run 52 times (Matching the number of windows I have in the building atm). I have changed the input type to List - mesh since it has worked before, but it doesn’t work now. As you can see on the picture this ruins both scripts and make it all run way too many times which also makes it slow. Hopefully there is a good reason for this and it is probably just the way ghpython works - since I am still quite new to it I don’t know.
Thanks in advance and have a great weekend!
File and picture of problem is linked
Working_Weatherfile.gh (53.9 KB)