Image Sampler script with old component

Hello, I have found this script, posted in 2014, as a png. I have to generate some contours, and I tried to create the script from scratch. Although I can’t make it work because of AxB, I have read that the AxB component is considered “old.” Can I have your insights? Maybe I have made more mistakes besides AxB. Thank you in advance!


image sampler.gh (71.8 KB)

The domain you were using wasn’t corresponding to the domain of the input curve. You can use the BoundingBox component along with Deconstruct Box.

This will provide you with the X-domain and Y-domain of the input. Then just copy those into the Image sampler.



imager sampler.gh (75.6 KB)

1 Like

Everything works perfectly, thank you!

1 Like