My MEL book is in route, and while I wait, I’ve been playing with other MEL scripts.
The first thing I noticed with MEL is this SOURCE command, the fact that Maya loads the functions into memory automatically. The problem though, is that if I make changes to my script, I cannot just run the script again. The second time I run the script it wont re-source, or over write the function in memory.
So how do you get around this problem while developing a MEL script? It looks like I can place a SOURCE command right in my MEL script, but I’m looking for an even simplier solution. I’d rather my functions NEVER load into memory. I’d rather the script always reload the files from my hard drive, that way I can just edit the files, and then execute my new changes.