ActiveState Community

Maya-Mel

Posted by toddw on 2008-11-08 17:03 |
1.1.0
Todd Whiteman
Wed, 2009-11-04 11:34
  • : 4.1 - 6.*
  • : 4.1 - 6.*

Support for editing Maya-Mel script files within Komodo.

Features provided by this extension:

  • maps ".mel" files to the Mel language
  • syntax highlighting (colorising)
  • basic completions support on variables and built-in functions/keywords
  • commenting/uncommenting support for "//"
  • smart brace indenting
  • API Catalog for Maya (thanks to JTilden)

The source code for the extension is available at:
http://svn.openkomodo.com/openkomodo/browse/addons/maya

Meesto | Mon, 2008-11-10 12:35

Thank you for adding this support feature. I look forward to trying it out.

--
Chris

martin_hughes | Tue, 2009-09-08 15:20

Hi guys,

I was looking for a MEL lexer. Can you tell me what version this was designed for? I'm planning to update it for Maya 2010.

Also, how far did the codeintel implementation go? I'll update that too if necessary (beyond keywords etc.). I've grabbed the source, but it would be nice to know where I'm starting from!

Cheers,

Martin

toddw | Tue, 2009-09-08 15:42

Hi Martin,

This extension was written to support the Maya Embedded Language (Mel). I don't know if anything has changed to Mel with the Maya 2010 release - nor the particular version of the keywords/builtins used by this extension.

The Mel codeintel system provides automatic completions on variables and built-in functions/keywords. You can see these in the file:
http://svn.openkomodo.com/openkomodo/view/addons/maya/pylib/lang_mel.py

Cheers,
Todd

martin_hughes | Tue, 2009-09-08 23:40

Thanks Todd!

It seems that I won't have to change much - you normally get a few keywords added between Maya versions. I've got the list from the 2010 docs.

Also MEL has "nodes" (from the dependency graph) which may or may not be useful to have highlighted in the syntax. I'll add them and see if I get more or less confused ;)

I'm also going to look at a way of "sending" the MEL to Maya directly from Komodo (without having to save a MEL file or copy/paste into the MEL editor in Maya. Maya has a reasonable Python implementation (which MEL can be called from) so it shouldn't be too hard.

Cheers,

Martin

toddw | Wed, 2009-11-04 11:41

There is now a Maya API catalog included in the extension, which was generated by JTilden, see here:
http://community.activestate.com/forum/maya-python-cix-extension

Cheers,
Todd