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], [status=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, status, usage
Long name (short name) Argument types Properties
status(s) boolean create
Return the cut string
licenseMethod(lm) boolean create
Return the current license method
productChoice(pc) boolean create
Return the current product choice
borrow(b) boolean create
Borrow a network license
r(r) boolean create
Return the cut string
isTrial(it) boolean create
Return the cut string
isBorrowed(ib) boolean create
Returns true if the current license is borrowed
isExported(ie) boolean create
Return the cut string
showBorrowInfo(sbi) boolean create
Show the Borrow Information Dialog
showProductInfoDialog(spi) boolean create
Show the Product Information Dialog
info(i) boolean create
Display license information
usage(u) boolean create
Return the current license usage

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( )

method = cmds.license(licenseMethod=True)