r/Maya • u/WildEntrepreneur2384 • 28m ago
MEL/Python Simple Grid Fill Script (Code/Icon Below)
Enable HLS to view with audio, or disable this notification
I made this script to fill the faces properly, it might slow down a bit with dense meshes but I think it works properly for simple things, if you find a bug or problem, let me know and I will update it and consider it will only work only with a vertex count in multiples of 4, delete history and freeze transformations.
I will add a way to rotate the grid once I figure it out how lol.
Code: https://gist.github.com/martinolidev/b3f15b5774fd959ec417eba6b8f7cfd1
Icon: https://drive.google.com/file/d/1OVbxyPJ_aiX1q7ANwZ0KfllfKNNQ2SLb/view?usp=sharing
How to install:
- Open your Shelf Editor in Maya (Windows > Settings/Preferences > Shelf Editor).
- Create a new shelf button.
- In the Command tab, paste the code from "grid_fill.py"
- Save the icon here "C:/Users/YOUR_USER/Documents/maya/prefs/icons/"
I hope is useful and I will update it later to improve it.


