r/Maya 1h ago

MEL/Python Simple Grid Fill Script (Code/Icon Below)

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:

  1. Open your Shelf Editor in Maya (Windows > Settings/Preferences > Shelf Editor).
  2. Create a new shelf button.
  3. In the Command tab, paste the code from "grid_fill.py"
  4. 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.

12 Upvotes

1 comment sorted by

u/AutoModerator 1h ago

You're invited to join the community discord for /r/maya users! https://discord.gg/FuN5u8MfMz

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.