I got MEL web tools working for Windows 7 in both IE and Firefox. It is not yet working on linux, but I’ve included the instructions that I’ve been using.
Windows instructions:
1. Run the C:\Program Files\Autodesk\{any Maya version}\ExternalWebBrowser\Windows\COM\Register.bat batch file to register the MELCommand class and
the mel: URL protocol handler. Once you have done this, do not move
or delete the MayaCmdCOM.dll file.
2. Copy npmcpplugin.dll from C:\Program Files\Autodesk\{any Maya version}\ExternalWebBrowser\Windows\ to C:\Program Files\Mozilla\Plugins\
3. The plug in will automatically work in IE after step one. To finish the Firefox setup, launch firefox and open C:\Program Files\Autodesk\{any Maya version}\ExternalWebBrowser\Examples\OtherBrowser\Test.html. Click one of the links at the bottom of the page this will open a prompt to select the program to open it with. The script run in step one should make it bring up MayaCmdCOM.dll. If it doesn’t browse to it and then click OK.
Linux Instructions:
To install Maya Command Port plugin for Linux, copy libmcpplugin.so into plugins folder of your web browser (i.e. <FirefoxLocation>/plugins)
It should be picked up by the browsers that support Netscape Plugin API next time you start the web browser.
Ensure that you are using the proper 32/64 bit version of the plugin to match
your web broswer.
To see if mozilla-based web browser recognized the plugin, type about:plugins in the URL bar.
MCP plugin has the following scripting interface:
property port:
- when setting port property to some string value, plugin will connect to the named command port. This port should be open in Maya.
By default, if the check box enabled in Preferences/Applications, Maya will open command port with the name “commandportDefault”.
- when queried, returns the current port name.
method execute(string):
- if plugin is connected to command port, string argument (mel command or expression) will be passed to Maya for execution.
This method returns int, double or string, depending on Maya’s response.
Also, see example in Test folder on how to use the plugin.
MEL url handling is implemented using melurlhandler. You can install it at any convenient location.
Here is an example how to register this handler in the mozilla-based web browser:
- Type about:config into the address bar
- Right-click create new boolean value: network.protocol-handler.external.mel and set to true
- Right-click create new boolean value: network.protocol-handler.warn-external.mel and set to false
- Right-click create new string value: network.protocol-handler.app.mel and set to <HandlerLocation>/melurlhandler
You can also optionally register the protocol with whatever window manager you are using. In KDE this is done through Control Center – KDE Components – File Associations.
Please note, in this version mel url handling is done through default command port, so commandportDefault port has to be open on Maya side.