pymel.tools.mel2py.melInfo

melInfo(input)

Get information about procedures in a mel file.

>>> import pymel.tools.mel2py as mel2py
>>> mel2py.melInfo('attributeExists')
(['attributeExists'], {'attributeExists': {'returnType': 'int', 'args': [('string', '$attr'), ('string', '$node')]}}, {})
Parameters:input – can be a mel file or a sourced mel procedure
Returns:
  • allProcs (list of str) – The list of procedures in the order the are defined
  • globalProcs (dict) –
    A dictionary of global procedures, with the following entries:
    • returnType: mel type to be returned
    • args: a list of (type, variable_name) pairs
  • localProcs (dict) – A dictionary of local procedures, formatted the same as with globals