running MEL scripts

  • Moe Goldberg

    Moe Goldberg - 2007-06-11

    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.


    • Matthias Baas

      Matthias Baas - 2007-06-11

      "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 -

    • Moe Goldberg

      Moe Goldberg - 2007-06-12



Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks