MGPickerLicence
MGPickerLicence is NOT undoable, queryable, and editable.
This is a utility command to query and edit the license state of MG-Picker Studio.
Go to: [MEL Examples] [Python Examples]
Synopsis
MGPickerLicence( floating=boolean, nodeLocked=string, state=boolean, )
MGPickerLicence |
|---|
-floating(-fl) boolean
|
In query mode, this returns information in a string array:
In create/edit mode, the argument True means starting the floating license connection process, and False means disconnecting and logging out from the current floating license. |
-nodeLocked(-nl) string
|
In query mode, this returns information in a string array:
The main version matters the most as that usually means some new features may be locked if it was registered for an old version.
You can use In create/edit mode, you specify the registration code for the registry. Using an empty string means unregistering the node-locked license. |
-state(-st)
|
The state of license:
|
Flag can appear in Create mode
Flag can appear in Edit mode
Flag can appear in Query mode
Flag can be used more than once.
MEL examples
print("Query license state: " +
`MGPickerLicence -q -state` + "\n"
);
print("Node-Locked license state: " +
stringArrayToString(`MGPickerLicence -q -nodeLocked`, ", ") +
"\n"
);
print("Floating license state: " +
stringArrayToString(`MGPickerLicence -q -floating`, ", ")
);
Python examples
from mgpicker import mgp
print("Query license state:", mgp.MGPickerLicence(q=True, state=True))
print("Node-Locked state:", mgp.MGPickerLicence(q=True, nodeLocked=True))
print("Floating License state:", mgp.MGPickerLicence(q=True, floating=True))