Set or query parameters associated with the file translators specified in as the argument.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
defaultFileRule (dfr) | unicode | ||
Returns the default file rule value, can return “” as wellFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
defaultOptions (do) | unicode | ||
|
|||
extension (ext) | unicode | ||
|
|||
fileCompression (cmp) | unicode | ||
|
|||
filter (f) | unicode | ||
|
|||
list (l) | bool | ||
|
|||
loaded (ld) | bool | ||
|
|||
objectType (ot) | bool | ||
|
|||
optionsScript (os) | bool | ||
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. |
|||
readSupport (rs) | bool | ||
|
|||
writeSupport (ws) | bool | ||
|
Derived from mel command maya.cmds.translator
Example:
import pymel.core as pm
# Returns true if dxf files can be read.
pm.translator( 'dxf', q=True, rs=True )