pymel.core.language.pythonToMelCmd¶
- pythonToMelCmd(*commandAndArgs, **kwargs)¶
Given a mel command name, and a set of python args / kwargs, return a mel string used to call the given command.
Note that the first member of commandAndArgs is the command name, and is required; the remainder are the args to it. We use this odd signature to avoid any name conflicts with mel flag names - ie, the signature used to be:
but this caused problems with the mel “button” function, which has a “command” flag.