Hello, I am trying to map a number of circles onto a curved surface but am getting this error: Solution exception:Object reference not set to an instance of an object. I’m not even sure which input this is in refence to because as soon as I disconnect any one of the inputs I get the input failed to collect data error. All the curve and surface geometry is being referenced as far as I can see.
I made a smaller test below and everything works fine. The only difference between the scripts is the circles being generated based on an image and not taken from Rhino but i’m not sure why that would be an issue.
Thanks in advance to anyone who can help.
Hi
you should upload file.(please internalize ‘gh’ file and uplod)
map to surface.gh (88.2 KB)
Here is the file
you are sampling color brightness, and it gives you a value between 0 and 1 for each sampled point
then those get multiplied by 0.15, so the Domain will be within 0 and 0.15
then those are used as Circle Radii, so you will get circles of radii from 0 to 0.15
Circles of diameter 0 are Nulls, so the component fails
I suggest to Remap brightness values from the Domain [0, 1] to the final min/max Circle radii you want to get, instead of multiplying them by a number (which keeps the lower bound to 0, because zero times n is still zero)
map to surface_inno.gh (92.2 KB)