mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
global: add _before_instance_create function for storing created nodes
This commit is contained in:
parent
81de2cf0c9
commit
4f7e4fcac3
1 changed files with 7 additions and 0 deletions
|
|
@ -1594,6 +1594,8 @@ class PlaceholderCreateMixin(object):
|
|||
"creator_plugin": creator_plugin
|
||||
}
|
||||
|
||||
self._before_instance_create(placeholder)
|
||||
|
||||
# compile subset name from variant
|
||||
try:
|
||||
creator_instance = creator_plugin(
|
||||
|
|
@ -1633,6 +1635,11 @@ class PlaceholderCreateMixin(object):
|
|||
|
||||
pass
|
||||
|
||||
def _before_instance_create(self, placeholder):
|
||||
"""Can be overriden. Is called before instance is created."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class LoadPlaceholderItem(PlaceholderItem):
|
||||
"""PlaceholderItem for plugin which is loading representations.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue