Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.

Synopsis

fileInfo [-referenceNode string] [-remove string] [string][string]

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.

Return value

string[]Command result

In query mode, return type is based on queried flag.

Keywords

file, version

Related

about, requires

Flags

referenceNode, remove
Long name (short name) Argument types Properties
-referenceNode(-rfn) string query
Specify the name of a referenceNode to indicate the scene file to query. This flag is only valid during query.

In query mode, this flag needs a value.

-remove(-rm) string createquery
If the remove flag is specified, the string following it is a keyword to remove from the list of fileInfo to be saved with the scene file.

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 be used more than once in a command.

MEL examples


fileInfo "application" "maya";
fileInfo "product" "Maya Unlimited 4.5";
fileInfo "version" "4.5";
fileInfo "cutIdentifier" "200111091529";
fileInfo "osv" "IRIX 6.5 04151556 IP32";

fileInfo -q "application";
// maya

fileInfo -q;
// returns a list of all keyword/value pairs, in the order they were
// defined.