Permission mask validation to check if the current selection of assets and/or folders is valid. The plugin buttons and menu items are enabled or disabled based on the result of the expression. The result of the validation is combined with the result of the enabledExpression check.
For example, when a plugin can change metadata, you can check if the user has permission to edit metadata on the selected assets.
<action>
<requiredPermissionMask>...</requiredPermissionMask>
</action>
Examples
A plugin that needs access to thumbnails an previews
VIEW and VIEW_PREVIEW permissions are required.
<requiredPermissionMask>VP-------</requiredPermissionMask>
A plugin that needs to change asset metadata
EDIT_METADATA permission is required.
<requiredPermissionMask>----E----</requiredPermissionMask>
A plugin that needs access to the orignal file
USE_ORIGINAL permission is required.
<requiredPermissionMask>---U-----</requiredPermissionMask>
Comments
Do you have corrections or additional information about this article? Leave a comment!
Do you have a question about what is described in this article? Please contact support here.
0 comments
Please sign in to leave a comment.