Licenses Class

From TouchDesigner 099 Wiki

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.


Members

disablePro When True, the application will run as though no Pro licenses are available. This can be used to test compatibility with lesser licenses.
type (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.
machine (Read Only) The computer machine name.
systemCode (Read Only) The unique computer system code.


Methods

install(key)boolean

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

Special Functions

len(Licenses)int

Returns the total number of installed licenses.
   a = len(licenses)

[index]License

Get specific license given an integer index.
   n = licenses[0]

Iterator

Iterate over each licenses.
   for m in licenses: