Bases: AYONAddon
, IPluginPaths
Class providing basic Royal Render implementation logic.
Source code in client/ayon_royalrender/addon.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | class RoyalRenderAddon(AYONAddon, IPluginPaths):
"""Class providing basic Royal Render implementation logic."""
name = "royalrender"
version = __version__
def initialize(self, studio_settings):
# type: (dict) -> None
self.enabled = False
addon_settings = studio_settings.get(self.name)
if addon_settings:
self.enabled = addon_settings["enabled"]
@staticmethod
def get_plugin_paths():
# type: () -> dict
"""Royal Render plugin paths.
Returns:
dict: Dictionary of plugin paths for RR.
"""
current_dir = os.path.dirname(os.path.abspath(__file__))
return {
"publish": [os.path.join(current_dir, "plugins", "publish")]
}
|
get_plugin_paths()
staticmethod
Royal Render plugin paths.
Returns:
Name | Type | Description |
dict | | Dictionary of plugin paths for RR. |
Source code in client/ayon_royalrender/addon.py
22
23
24
25
26
27
28
29
30
31
32
33 | @staticmethod
def get_plugin_paths():
# type: () -> dict
"""Royal Render plugin paths.
Returns:
dict: Dictionary of plugin paths for RR.
"""
current_dir = os.path.dirname(os.path.abspath(__file__))
return {
"publish": [os.path.join(current_dir, "plugins", "publish")]
}
|