Here's an interesting thing I learned today:
Some commands cannot be used in a MEL script unless they are done before manually OR called from the source. For example,
Lets say you want to break a connection in the channel box. The command you will get in the script editor is:
So naturally, you'll put this in a script if trying to break connections. And since you've already done it, since the scene remains open, it's fine. However...lets say you reopen the scene and try to run the script. You will get a cannot find procedure CBdeleteConnection (or whatever command) error. Hmmm.
Apparently, for this to work, you have to call the source file that these scripts are in before using them in a script, unless you do it manually each time (which sources it automatically). The command for this is:
And bam, this sources all of those hidden procedures. Best part - Maya help has no information about this. Thanks guys!
serialization fun! - I’ve been tinkering around with this little project for awhile now. I’ve always wanted to try to write a simple little serialization format. I know there...
5 years ago