mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
31 lines
529 B
Python
31 lines
529 B
Python
import os
|
|
import sys
|
|
import re
|
|
import ftrack_api
|
|
from pype.ftrack import BaseEvent
|
|
from app import api
|
|
|
|
|
|
ignore_me = True
|
|
|
|
|
|
class Test_Event(BaseEvent):
|
|
|
|
priority = 10000
|
|
|
|
def launch(self, session, entities, event):
|
|
|
|
'''just a testing event'''
|
|
|
|
self.log.info(event)
|
|
|
|
return True
|
|
|
|
|
|
def register(session, **kw):
|
|
'''Register plugin. Called when used as an plugin.'''
|
|
if not isinstance(session, ftrack_api.session.Session):
|
|
return
|
|
|
|
event = Test_Event(session)
|
|
event.register()
|