Licenses Class

From Derivative
Jump to navigation Jump to search

The Licenses class describes the set of all installed license objects. It can be accessed with the licenses object, , found in the automatically imported td module.

print(len(licenses))	# number of licenses 
print(licenses[0])		# first license in the list
for l in licenses:
	print(l.type)		# print all installed licenses' types


Members

disableProbool :

When True, the application will run as though no Pro licenses are available. This can be used to test compatibility with lesser licenses. (See also: app.addNonCommercialLimit)

dongleslist (Read Only):

Get the list of dongles connected to the system.

machinestr (Read Only):

The computer machine name.

systemCodestr (Read Only):

The unique computer system code.

isProbool (Read Only):

When True, the application is running with a Pro license. It is recommended to use this and isNonCommerical over the type method.

isNonCommercialbool (Read Only):

When True, the application is running with a Non-Commercial license. It is recommended to use this and isPro over the type method.

typestr (Read Only):

The highest ranking license type of all installed licenses, some products being 'Pro', 'Non-Commercial', 'Commercial'. See also app.product in App Class.

Methods

install(key)bool:

Install a license with the specified key. Returns True if successful.

TouchDesigner Build: