Hacking Maya UV Window
*** Backup your .mel files before you edit them!!! ***
So I wanted to hack into the Maya UV window and change some things. The first thing I wanted to change was the marking menu.
After hunting around I found the texturePanel.mel file in …Maya8.5\scripts\others\
Around line 2095 you will find
global proc textureWindowCreatePopupMenubar( string $editor, string $editorCmd )
This is the command used to generate the popup menu under the standard marking menu.
I tore this out and put in my own menu items. If you tear it all out you will get an error on line 109. There are a few ways to deal with it but the shitty brute force method is to change line 108.
change: if ( $reason == 101 )
to: if ( $reason == 999 )
Now this may cause some later issues I’m not sure yet. But I am exploring as a go.
More on this as a discover things.
This reminded me of your blog posts about turning Maya into a level editor? Do you think you’ll be continuing this at any point as they were really interesting reads.
Yeah actually I have been meaning too. I kinda got off track there for a few months…