Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
fileInfo is NOT undoable, queryable, and NOT editable.fileInfo provides a mechanism for keeping information related to a Maya scene file. Each invocation of the command consists of a keyword/value pair, where both the keyword and the associated value are strings. The command may be invoked multiple times with different keywords. Maya emits this command several times into each file it creates, primarily to provide details such as which productization or packaging of the program was used (e.g "Complete", "Unlimited"), the specific version and build identification that was run, and the operating system on which it was run. Maya may make use of this information when present in files it reads. All keyword/value pairs defined by use of the fileInfo command are preserved when Maya saves the scene, whether to an ASCII or binary file.
In query mode, return type is based on queried flag.
|Long name (short name)||Argument types||Properties|
|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.|
import maya.cmds as cmds cmds.fileInfo( 'application', 'maya' ) cmds.fileInfo( 'product', 'Maya Unlimited 4.5' ) cmds.fileInfo( 'version', '4.5' ) cmds.fileInfo( 'cutIdentifier', '200111091529' ) cmds.fileInfo( 'osv', 'IRIX 6.5 04151556 IP32' ) cmds.fileInfo( 'application', query=True ) # maya cmds.fileInfo( query=True ) # returns a list of all keyword/value pairs, in the order they were # defined.