Perforation pattern with predefined opening dimensions

Hi There!

I know how to make a perforation pattern based on attractor points or with the image sampler. However, In this particular case I hope to write a script that lets me control the size of the various openings the script creates to match the sizes of our available perforation tools. So let’s say I want the script to (depending on the image or distance as usual), assign predefined size 1, 2, 3 of 4 to a spot.

how do I put this in the script and at which point?

Kind regards!

Look at Remapping the numbers:

thank you for your solution!

1 Like