bgdev.tools.mel2py

Convert mel to python.

created

23/01/2019

author

Benoit GIELLY <benoit.gielly@gmail.com>

convert_command(command, namespace='cmds', verbose=True)[source]

Convert mel command-string to python.

Parameters
  • command (str) – The mel command as a string.

  • namespace (str) – The namespace to use for the module.

  • verbose (bool) – Prints the command after conversion.

Returns

The convert mel command to python.

Return type

str

convert_file(files, force_compatibility=True)[source]

Convert mel files to python.

Parameters
  • files (list) – List of path to mel files.

  • force_compatibility (bool) – Pymel argument. Don’t really know if it has an impact or not so adding it as a kwarg just in case.