justinfx / MayaSublime

Send selected Python and MEL code snippets from SublimeText to Maya via commandPort
MIT License
149 stars 38 forks source link

Not Detecting MEL on Windows through the Keymap Context #1

Closed juggernate closed 12 years ago

juggernate commented 12 years ago

Thanks for sharing this! I have only tested this on windows7 x64 with ST2 2.0.1. This is the only custom package I have installed.

I can send mel selections to maya if I explicity run view.run_command('send_to_maya', {'lang':'mel'}).

But for me the Default (Windows).sublime-keymap only works with python selections but doesn't seem to detect MEL selections when the current file is MEL, though ST recognizes it as MEL .

Maybe the context entry "operand": "source.MEL" doesn't seem to resolve with MEL? (or I haven't set up the package correctly) The run_command doesn't even seem to get called with the mapped keys. (I have also tried using different key mappings but that doesn't make a difference)

justinfx commented 12 years ago

Thanks for pointing that out. Surprised no one else came across this sooner. The capital MEL should be lower case mel. Latest commit should address it.

juggernate commented 12 years ago

Nice. Thanks!