I was wondering if anyone knows where the popupMenu for the attribute editor is built/managed, the mel file. Im trying to add an extra menuItem on for a custom renderLayer's script im working on. A lot like they have override attribute added in....
QUOTE(Daniel_Faus @ 03/06/07, 12:31 AM) [snapback]261591[/snapback] In case you mean top menu bar of the attribute editor (which is not a popupMenu), look in the file
\scripts\others\showEditor.mel
for the function
proc buildAEMenus ( string $parent )
otherwise you need to be much more specific since the myriad of popupMenus that can show up in the AE are spread across many AT_Template files.
I actually mean the popup's that come up when you right click over an attribute. There doesn't seem to be a a myriad of different popups. There seems to be 2, one that offers you the ability to create Expressions, keyframes, etc. and another that only allows you to Lock an attribute. When you create Render LAyers it gives you the option to create overrrides. I pretty much just need to add a custom menuItem to these popups that will allow you to create an override....
Oh, you're right, I apologize for taking an assumption for granted. There are indeed very few popups in the templates.
This is strange, I searched all ascii files in the Maya installation directory for "Create New Expression", "Create New Texture" but absolutely nothing is found.
QUOTE(Daniel_Faus @ 03/06/07, 08:18 AM) [snapback]261654[/snapback] Oh, you're right, I apologize for taking an assumption for granted. There are indeed very few popups in the templates.
This is strange, I searched all ascii files in the Maya installation directory for "Create New Expression", "Create New Texture" but absolutely nothing is found.
Yea I tried the same thing before posting here, but I couldnt find anything so that's why Im bothering you guys . They must exist somewhere, but they are very elusive!!
that's unforunate....so it's rebuild every time the UI is loaded then...crap....any ideas how I can append my own command onto the end of the popup? Maybe a script job that montiors when an AE is opened and somehow gets the name of the popup menu and adds my command menuItem onto it?
Maybe modifying the file \scripts\others\setDefaultTemplates.mel would allow you to assign a new popupMenu for button 2 (mmb), but I doubt that you can do something with button 3.
Maybe you can hack you way through that file and using -numberOfPopupMenus (-npm) -popupMenuArray (-pma) on those controls to modify the popup for button 3 on the fly, that would require a lot of experimenting but there is a slight possibility of getting this to work.
I actually wouldnt mind assigning it to button 2, that could keep my stuff seperated....that is a option that I will look into and see if I can get something mucked up. Thanks Daniel!!