This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from maya import cmds | |
import re | |
import os | |
def get_mel_script_code(name): | |
"""Return source code of the MEL procedure loaded from a .mel script file""" | |
result = mel.eval('whatIs("%s")' % name) | |
if result == "Unknown": |
OlderNewer