Skip to content

Commit 51cee41

Browse files
committed
Initial hook and settings config
1 parent 4ef9e61 commit 51cee41

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

app.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ def base_hooks(self):
8383
"""
8484
return self._base_hooks
8585

86+
@property
87+
def summary_hook(self) -> sgtk.Hook:
88+
"""Exposes the extensible ``:summary:hook`` instance from app settings.
89+
90+
Used to fetch information related to summary overlay display content.
91+
"""
92+
self._summary_hook = getattr(
93+
self,
94+
"_summary_hook",
95+
self.create_hook_instance(self.get_setting("summary")["hook"]),
96+
)
97+
return self._summary_hook
98+
8699
@property
87100
def util(self):
88101
"""

info.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ configuration:
1515
description: Specify the name that should be used in menus and the main
1616
publish dialog
1717

18+
summary:
19+
type: dict
20+
description: Hook and settings that defines how the summary overlay is displayed
21+
items:
22+
hook: {type: hook}
23+
settings: {type: dict, allows_empty: True}
24+
default_value:
25+
hook: "{self}/summary_hook.py"
26+
settings:
27+
28+
1829
display_action_name:
1930
type: str
2031
default_value: Publish

0 commit comments

Comments
 (0)