Go to: Synopsis. Flags. Return value. Related. Python examples.
translator(
[translator]
, [defaultOptions=string], [extension=boolean], [fileCompression=string], [filter=boolean], [list=boolean], [optionsScript=boolean], [readSupport=boolean], [writeSupport=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
translator is undoable, queryable, and editable.
Set or query parameters associated with the file translators.
defaultOptions, extension, fileCompression, filter, list, optionsScript, readSupport, writeSupport
Long name (short name) |
[argument types] |
Properties |
list(l)
|
boolean
|
|
|
Return a string array of all the translators that are loaded.
In query mode, this flag needs a value.
|
|
defaultOptions(do)
|
string
|

|
|
Return/set a string of default options used by this translator.
In query mode, this flag needs a value.
|
|
optionsScript(os)
|
boolean
|
|
|
Query the name of the options script to use to post the user
options UI. When this script is invoked it will expect the name of the
parent layout in which the options will be displayed as well as the name
of the callback to be invoked once the apply button has been depressed
in the options area.
In query mode, this flag needs a value.
|
|
readSupport(rs)
|
boolean
|
|
|
Returns true if this translator supports read operations.
In query mode, this flag needs a value.
|
|
writeSupport(ws)
|
boolean
|
|
|
Returns true if this translator supports write operations.
In query mode, this flag needs a value.
|
|
fileCompression(cmp)
|
string
|

|
|
Specifies the compression action to take when a file is saved.
Possible values are "compressed", "uncompressed" "asCompressed".
In query mode, this flag needs a value.
|
|
extension(ext)
|
boolean
|
|
|
Returns the default file extension for this translator.
In query mode, this flag needs a value.
|
|
filter(f)
|
boolean
|
|
|
Returns the filter string used for this translator.
In query mode, this flag needs a value.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
boolean or string array depending upon which flags are specified.
workspace
import maya.cmds as cmds
# Returns true if dxf files can be read.
cmds.translator( 'dxf', q=True, rs=True )