ladybug-tools / honeybee-dynamo

:honeybee: :blue_book: Honeybee library and plugin for Dynamo
GNU General Public License v3.0
17 stars 8 forks source link

Generate Colors Node 00_point_in_time_gridbased.dyn #72

Closed MattWashBVN closed 6 years ago

MattWashBVN commented 7 years ago

Hi, I am getting an error from the colors output of the generate colors node. I think it has something to do with the format of the color values. I have replace this node with a colorByARGB node to test and it runs successfully. The error I get from the Display.ByGeometryColor node is "Warning: One or more of the input types are not matching. Couldn't find a version of ByGeometryColor that takes arguments of type (array,array)". I have opened up the generate colors custom node and tried to see what the python script was looking for, but it is beyond my python knowledge to work out what might be causing the error. please can you help. See attached screenshot...thanks, Matt generatecolorsoutputerror

mostaphaRoudsari commented 7 years ago

Hi @MattWashBVN, From your screenshot the issue is that the structure of the colors and geometries are different. Can you flatten both inputs before connecting them to Display.ByGeometryColor?

bnim-technicalsupport commented 6 years ago

We ran into this issue in the 04 example and we had to flatten the lists and then unwrap the rgb values using a quick python node calling each value into a separate list and key them into a color.byargb node. honeybee_dynamo_rgbvalues

mostaphaRoudsari commented 6 years ago

@bwlosinski interesting! In your example the node fails to convert the colors from Ladybug colors to Dynamo colors. Are you using the latest version of Ladybug for Dynamo?

mostaphaRoudsari commented 6 years ago

I can't replicate this issue in the new release. Feel free to reopen the issue with a sample file to recreate the issue.