mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Converted to server action
This commit is contained in:
parent
f0e6bb7a82
commit
4a2efb1cd2
1 changed files with 7 additions and 11 deletions
|
|
@ -1,16 +1,12 @@
|
|||
from openpype.modules.ftrack.lib import BaseAction, statics_icon
|
||||
from openpype.modules.ftrack.lib import ServerAction
|
||||
|
||||
|
||||
class MultipleNotes(BaseAction):
|
||||
'''Edit meta data action.'''
|
||||
class MultipleNotesServer(ServerAction):
|
||||
"""Action adds same note for muliple AssetVersions."""
|
||||
|
||||
#: Action identifier.
|
||||
identifier = 'multiple.notes'
|
||||
#: Action label.
|
||||
label = 'Multiple Notes'
|
||||
#: Action description.
|
||||
description = 'Add same note to multiple Asset Versions'
|
||||
icon = statics_icon("ftrack", "action_icons", "MultipleNotes.svg")
|
||||
identifier = "multiple.notes.server"
|
||||
label = "Multiple Notes (Server)"
|
||||
description = "Add same note to multiple Asset Versions"
|
||||
|
||||
def discover(self, session, entities, event):
|
||||
''' Validation '''
|
||||
|
|
@ -107,4 +103,4 @@ class MultipleNotes(BaseAction):
|
|||
def register(session):
|
||||
'''Register plugin. Called when used as an plugin.'''
|
||||
|
||||
MultipleNotes(session).register()
|
||||
MultipleNotesServer(session).register()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue