pymel.core.system.Translator

digraph inheritance040fd6ccfa { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "Translator" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.system.Translator",style="setlinewidth(0.5)",tooltip="Provides information about a Maya translator, which is used for reading",height=0.25,shape=box,fontsize=8]; }

class Translator(name)

Provides information about a Maya translator, which is used for reading and/or writing file formats.

>>> ascii = Translator('mayaAscii')
>>> ascii.ext
u'ma'
>>> bin = Translator.fromExtension( 'mb' )
>>> bin
Translator(u'mayaBinary')
>>> bin.name
u'mayaBinary'
>>> bin.hasReadSupport()
True
ext
extension()
filter()
static fromExtension(ext, mode=None, caseSensitive=False)
getDefaultOptions()
getFileCompression()
hasReadSupport()
hasWriteSupport()
static listRegistered()
name
optionsScript()
setDefaultOptions(options)
setFileCompression(compression)