PDA

View Full Version : compiling/packaging MEL scripts?


jeremyhardin
01-23-2007, 08:41 AM
Hi all. Getting my feet wet with MEL nowadays and loving it (other than interfaces anyway).

Is there any way to package or compile a MEL? Or if I had several that I wanted to compile into a single file...things like that? Possible and I'm just missing it? Or not possible with MEL?

Thanks in advance.

isamuraiqat
01-23-2007, 10:22 AM
if you want is to just check the syntax of your code.. you can simply place your code in a global procedure and run it, i would guess you'll be using an editor like mel studio pro or sth.. the code for the global procedure would be


global proc procName(){

//your code here

}

hope that helped.. enjoy

jeremyhardin
01-23-2007, 10:28 AM
Well, I appreciate the response, but I meant compiling file itself, not grouping the contents of the file into a procedure. But I think you answered my question. Cheers.

rokandic
01-23-2007, 02:35 PM
Compiling of MEL scripts is not possible, you'll have to use Maya API to convert it into a packaged/optimized/unreadable code.

-rok

arcsecond
01-23-2007, 11:47 PM
I do remember once seeing a MEL encryption plugin. You would tell it to encrypt your .mel file and then you could only run that encrypted .mel file with said plugin and the proper password. This seems a little silly to me, but hey.

As to putting a whole bunch of mel procedures into a single file? That's easy. Copy and Paste all you procs into a single text file. This however makes maintenence a pain and eventually reaches the line limit in some editors.

Hope this helps.
-James

CGTalk Moderation
01-23-2007, 11:47 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.