mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
26 lines
655 B
Python
26 lines
655 B
Python
from pype.modules.ftrack.lib import BaseAction, statics_icon
|
|
|
|
|
|
class TestAction(BaseAction):
|
|
"""Action for testing purpose or as base for new actions."""
|
|
|
|
ignore_me = True
|
|
|
|
identifier = 'test.action'
|
|
label = 'Test action'
|
|
description = 'Test action'
|
|
priority = 10000
|
|
role_list = ['Pypeclub']
|
|
icon = statics_icon("ftrack", "action_icons", "TestAction.svg")
|
|
|
|
def discover(self, session, entities, event):
|
|
return True
|
|
|
|
def launch(self, session, entities, event):
|
|
self.log.info(event)
|
|
|
|
return True
|
|
|
|
|
|
def register(session, plugins_presets={}):
|
|
TestAction(session, plugins_presets).register()
|