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:

A 3-element tuple:
  1. the list of procedures in the order the are defined

  2. a dictionary of global procedures, with the following entries:
    • returnType: mel type to be returned
    • args: a list of (type, variable_name) pairs
  3. a dictionary of local procedures, formatted the same as with globals

Previous topic

pymel.tools.mel2py.mel2pyStr

Next topic

pymel.tools.mel2py.resolvePath

Core

Core Modules

Other Modules

This Page