/
engine_init.py
31 lines (24 loc) · 994 Bytes
/
engine_init.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright (c) 2018 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the Shotgun Pipeline Toolkit Source Code License. All rights
# not expressly granted therein are reserved by Shotgun Software Inc.
"""
Hook that gets executed every time an engine has been fully initialized.
"""
from tank import Hook
class EngineInit(Hook):
def execute(self, engine, **kwargs):
"""
Executed when a Toolkit engine has been fully initialized.
At this point, all apps and frameworks have been loaded,
and the engine is fully operational.
The default implementation does nothing.
:param engine: Engine that has been initialized.
:type engine: :class:`~sgtk.platform.Engine`
"""
pass