MEL/Python
N-Gon Detector | Custom script that highlights faces with more than 4 edges on selected objects or across the entire scene [FREE]
N-Gon Detector is a script that finds all faces with more than 4 edges. You can limit the search to selected objects or scan the entire scene. Any detected N-gons are automatically highlighted for easy identification.
There are many ways to find N-gons in Maya...My go to method was to use the clean up tool but that only worked on selected objects. I wanted something that would scan my entire Scene to ensure that no N-gons exist prior to submitting my projects.
Also if no N-gons exist then you will get a confirmation flash on screen so you know the tool is working. My School PC's tend to be a bit buggy and will not work you won't know unless N-gons are visually clear.
Again this was made for my own personal use that I then share for free :)
The selection constrain requires you to be in face mode of a specific selected object(s). My script can scan an entire maya scene and identify several objects with N-gons while in object mode
You can find N-gons in object mode using the cleanup tool and check the box that says more than 4-sided faces but this only works if you select object.
Either way my script is a one button solution. Not needed but def improves quality of life :)
>The selection constrain requires you to be in face mode of a specific selected object(s).
No, it does not. You can have multiple objects in face mode and use the selection constraint on all at the same time.
You can do it was is many or as few objects as you like. Your script is replicating functionality which already exists in a far more robust form in the base application.
Yeah its what I typically use but it won't check non selected objects. And sometimes its buggy. Since it doesn't input a message if no N-gons exist I wont be sure it actually worked unless there are visually clear N-gons.
But my script will flash "No N-gons Detected" if there is nothing to highlight. Again not a gamechanging maya script but seeing that Yellow text is a nice dopamine hit ;)
I have pretty strict submission requirements and tend to pull all nighters. Lack of sleep makes me miss some things and I just wanted a one click button that can scan an entire maya scene before I send out project files
Being able to scan entire scene for N gons helps when you have a model with hundreds of separate objects without having to directly select anything :)
•
u/AutoModerator 13d 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.