Hi there, I’ve been using Grasshopper for a little while (simple algorithms and following along dozens of YouTube tutorials) and Rhino for a very long while, but I haven’t had much success with putting this latest script together.
I’m trying to create a script for a speaker grille with staggered holes, but I would like to use a custom shape for the holes and I would like to use the borders of the grille as attractor points so that the shapes shrink/fade out as they approach the end of the speaker grille surface. I need to adjust the UV count on the grid, so I can control the number of holes in order to hit a specific percentage of open area (in my case this is 40% open area) so that the grille doesn’t interfere with the sound. There is a minimum for the size of the smallest hole and the smallest space between holes, but that depends on material thickness and I haven’t gotten that far yet. For now, I’m trying to stick to 2D curves so I can calculate the open area in Rhino.
Right now, I can’t seem to get the grid points to stay within the surface of the speaker grille, and I have completely botched all attempts to use the grille’s border as attractor points. Any help is much appreciated! I’ve been at this for about 30 hours this week without much fruitful progress
Shoot, I even tried to get ChatGPT to help me but that hasn’t been much help either lol
Speaker Grille Test_03_19JAN24.3dm (189.9 KB)
Staggered Grid with Custom Shape and Attractor_18JAN24.gh (14.7 KB)