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

Synopsis

about [-apiVersion] [-application] [-batch] [-buildDirectory] [-buildVariant] [-codeset] [-compositingManager] [-connected] [-creativeVersion] [-ctime] [-currentDate] [-currentTime] [-customVersion] [-customVersionClient] [-customVersionMajor] [-customVersionMinor] [-customVersionString] [-cutIdentifier] [-date] [-environmentFile] [-evalVersion] [-file] [-fontInfo] [-helpDataDirectory] [-installedVersion] [-ioVersion] [-irix] [-is64] [-languageResources] [-linux] [-linux64] [-liveUpdate] [-localizedResourceLocation] [-ltVersion] [-macOS] [-macOSppc] [-macOSx86] [-majorVersion] [-minorVersion] [-ntOS] [-operatingSystem] [-operatingSystemVersion] [-patchVersion] [-preferences] [-product] [-qtVersion] [-tablet] [-tabletMode] [-uiLanguage] [-uiLanguageForStartup] [-uiLanguageIsLocalized] [-uiLocaleLanguage] [-version] [-win64] [-windowManager] [-windows]

about is undoable, NOT queryable, and NOT editable.

This command displays version information about the application if it is executed without flags. If one of the above flags is specified then the specified version information is returned.

Return value

stringThe application's version information.

Related

fileInfo

Flags

apiVersion, application, batch, buildDirectory, buildVariant, codeset, compositingManager, connected, creativeVersion, ctime, currentDate, currentTime, customVersion, customVersionClient, customVersionMajor, customVersionMinor, customVersionString, cutIdentifier, date, environmentFile, evalVersion, file, fontInfo, helpDataDirectory, installedVersion, ioVersion, irix, is64, languageResources, linux, linux64, liveUpdate, localizedResourceLocation, ltVersion, macOS, macOSppc, macOSx86, majorVersion, minorVersion, ntOS, operatingSystem, operatingSystemVersion, patchVersion, preferences, product, qtVersion, tablet, tabletMode, uiLanguage, uiLanguageForStartup, uiLanguageIsLocalized, uiLocaleLanguage, version, win64, windowManager, windows
Long name (short name) Argument types Properties
-apiVersion(-api) create
Returns the api version.
-application(-a) create
Returns the application name string.
-batch(-b) create
Returns true if application is in batch mode.
-buildDirectory(-bd) create
Returns the build directory string.
-buildVariant(-bv) create
Returns the build variant string.
-codeset(-cs) create
Returns a string identifying the codeset (codepage) of the locale that Maya is running in. Example return values include "UTF-8", "ISO-8859-1", "1252". Note that the codeset values and naming conventions are highly platform dependent. They may differ in format even if they have the same meaning (e.g. "utf8" vs. "UTF-8").
-compositingManager(-cm) create
On Linux, returns true if there is a compositing manager running; on all other platforms, it always returns true.
-connected(-cnt) create
Return whether the user is connected or not to the Internet.
-creativeVersion(-cre)
2023
create
Returns true if this is the Maya Creative version of the application.
-ctime(-cti) create
Returns the current time in the format Wed Jan 02 02:03:55 1980\n\0
-currentDate(-cd) create
Returns the current date in the format yyyy/mm/dd, e.g. 2003/05/04.
-currentTime(-ct) create
Returns the current time in the format hh:mm:ss, e.g. 14:27:53.
-customVersion(-cv) create
Returns true if this is a custom version of Maya.
-customVersionClient(-cvc) create
Returns the custom client version string for Maya or an empty string if this is not a custom version.
-customVersionMajor(-cvm) create
Returns the custom major version of Maya or 0 if this is not a custom version.
-customVersionMinor(-cvn) create
Returns the custom minor version of Maya or 0 if this is not a custom version.
-customVersionString(-cvs) create
Returns the custom version string for Maya or an empty string if this is not a custom version.
-cutIdentifier(-c) create
Returns the cut string.
-date(-d) create
Returns the build date string.
-environmentFile(-env) create
Returns the location of the application defaults file.
-evalVersion(-ev) create
This flag is now deprecated. Always returns false, as the eval version is no longer supported.
-file(-f) create
Returns the file version string.
-fontInfo(-foi) create
Returns a string of the specifications of the fonts requested, and the specifications of the fonts that are actually being used.
-helpDataDirectory(-hdd) create
Returns the help data directory.
-installedVersion(-iv) create
Returns the product version string.
-ioVersion(-io) create
Returns true if this is the Maya IO version of the application.
-irix(-ir) create
Returns true if the operating system is Irix. Always false with support for Irix removed.
-is64(-x64) create
Returns true if the application is 64 bit.
-languageResources(-lr) create
Returns a string array of the currently installed language resources. Each string entry consists of three elements delimited with a colon (':'). The first token is the locale code (ISO 639-1 language code followed by ISO 3166-1 country code). The second token is the language name in English. This third token is the alpha-3 code (ISO 639-2). For example English is represented as "en_US:English:enu".
-linux(-li) create
Returns true if the operating system is Linux.
-linux64(-l64) create
Returns true if the operating system is Linux 64 bit.
-liveUpdate(-lu) create
This flag is deprecated(2019) and may be removed in future releases of Maya. Returns Autodesk formatted product information.
-localizedResourceLocation(-lrl) create
Returns the path to the top level of the localized resource directory, if we are running in an alternate language. Returns an empty string if we are running in the default language.
-ltVersion(-lt) create
Deprecated. Returns true if this is the Maya LT version of the application.
-macOS(-mac) create
Returns true if the operating system is Macintosh.
-macOSppc(-ppc) create
Returns true if the operating system is a PowerPC Macintosh.
-macOSx86(-x86) create
Returns true if the operating system is an Intel Macintosh.
-majorVersion(-mjv) create
Returns the major version of Maya.
-minorVersion(-mnv) create
Returns the minor version of Maya.
-ntOS(-nt) create
Returns true if the operating system is Windows.
-operatingSystem(-os) create
Returns the operating system type. Valid return types are "nt", "win64", "mac", "linux" and "linux64"
-operatingSystemVersion(-osv) create
Returns the operating system version. on Linux this returns the equivalent of uname -srvm
-patchVersion(-pv) create
Returns the patch version of Maya.
-preferences(-pd) create
Returns the location of the preferences directory.
-product(-p) create
Returns the license product name.
-qtVersion(-qt) create
Returns Qt version string.
-tablet(-tab) create
Windows only. Returns true if the PC is a Tablet PC.
-tabletMode(-tm) create
Windows 8 (and above) only. If your device is a Tablet PC, then the convertible mode the device is currently running in. Returns either: tablet or laptop (keyboard attached). See the tablet flag.
-uiLanguage(-uil) create
Returns the language that Maya's running in. Example return values include "en_US" for English and "ja_JP" for Japanese.
-uiLanguageForStartup(-uis) create
Returns the language that is used for Maya's next start up. This is read from config file and is rewritten after setting ui language in preference.
-uiLanguageIsLocalized(-uii) create
Returns true if we are running in an alternate language, not the default (English).
-uiLocaleLanguage(-ull) create
Returns the language locale of the OS. English is default.
-version(-v) create
Returns the version string.
-win64(-w64) create
Returns true if the operating system is Windows x64 based.
-windowManager(-wm) create
Returns the name of the Window Manager that is assumed to be running.
-windows(-win) create
Returns true if the operating system is Windows based.

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

about;

string $version = `about -v`;