Add a new command to maya is it possible?


#1

Hi

Here in http://forums.cgsociety.org/showthread.php?f=89&t=1430485 tread i asked about highlighting an attribute in channel box which was impossible in Maya 2016 ex 2 earlier version.
Now i’m curious to know, come to think that if the newest version of Maya is 2015 and i like to have this ability :

Is it possible to add this code and ability using C or Maya API or … ?
In short can we add a command to Maya which doesn’t exist in Maya?

Thanks in advance


#2

It depends.
Of course you can add arbitrary commands to maya. But your problem is that you want to access maya UI elements. Since Maya’s UI switched to Qt, a lot of interface elements are encapsulated into Qt elements which cannot be accessed by default. e.g the extended color chooser is such an element as much as I know. If an element is created via mel, you can have luck and the elements can be accessed seperately. Have a look at the script editor if you click in the channelbox and check which scripts are executed.