Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

license([borrow=boolean], [info=boolean], [isBorrowed=boolean], [isExported=boolean], [isTrial=boolean], [licenseMethod=boolean], [productChoice=boolean], [r=boolean], [showBorrowInfo=boolean], [showProductInfoDialog=boolean], [usage=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

license 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 license information.

Flags

borrow, info, isBorrowed, isExported, isTrial, licenseMethod, productChoice, r, showBorrowInfo, showProductInfoDialog, usage
Long name (short name) Argument types Properties
borrow(b) boolean create
This flag is obsolete and no longer supported.
info(i) boolean create
This flag is obsolete and no longer supported.
isBorrowed(ib) boolean create
This flag is obsolete and no longer supported.
isExported(ie) boolean create
This flag is obsolete and no longer supported.
isTrial(it) boolean create
This flag is obsolete and no longer supported.
licenseMethod(lm) boolean create
This flag is obsolete and no longer supported.
productChoice(pc) boolean create
This flag is obsolete and no longer supported.
r(r) boolean create
This flag is obsolete and no longer supported.
showBorrowInfo(sbi) boolean create
This flag is obsolete and no longer supported.
showProductInfoDialog(spi) boolean create
Show the Product Information Dialog
usage(u) boolean create
This flag is obsolete and no longer supported.

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.

Python examples

import maya.cmds as cmds

cmds.license(showProductInfoDialog=True)