Today saw a foray into uncharted terrain – wonderful MEL-land. Well, wonderful and taxing. I tried to bend my brain around a problem that other MEL tools didn’t seem to have solved – a proper backface culling toggle, regardless of what you’re doing.
MEL is the scripting language of Maya which allows you to customize it and create extra functions useful for 3D work. I was too impatient to get started to ask in forums, and Maya Help didn’t answer my specific questions. But by experimenting and finding a very few sources of info on the net I got an inkling on how to proceed.
I spent a good two hours on said problem until I broke it down into three special cases and “ignoring component mode”, since Maya can go into vertex or whichever mode without ever going into component mode. I finally cracked it, and added some (for me, and perhaps others) useful functions.
It certainly will help me modeling. I’ll have a think again tomorrow. If I can make it really good I will upload it to highend3d or someplace. It was a big relief when it finally worked flawlessly, and a very satisfying session of ‘coding’. Maybe I can have some fun with this.