Hi
I've looked through the documentation, and I can't seem to figure out how to run a MEL script from python (the equivalent of MEL's "source"). Is this possible?
Thanks for any help.
-Moe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"source" is a MEL keyword, not a MEL command, that's why it is not directly available in the mel module. But you can use the eval command to execute some MEL code that runs the MEL script:
from maya import mel
mel.eval('source "...path to your mel file..."')
- Matthias -
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I've looked through the documentation, and I can't seem to figure out how to run a MEL script from python (the equivalent of MEL's "source"). Is this possible?
Thanks for any help.
-Moe
"source" is a MEL keyword, not a MEL command, that's why it is not directly available in the mel module. But you can use the eval command to execute some MEL code that runs the MEL script:
from maya import mel
mel.eval('source "...path to your mel file..."')
- Matthias -
Thanks!