mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Get and set openpype context data on comp
This commit is contained in:
parent
f0cd353301
commit
b077815dc5
1 changed files with 4 additions and 2 deletions
|
|
@ -155,10 +155,12 @@ class FusionHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
|
|||
return ls()
|
||||
|
||||
def update_context_data(self, data, changes):
|
||||
print(data, changes)
|
||||
comp = get_current_comp()
|
||||
comp.SetData("openpype", data)
|
||||
|
||||
def get_context_data(self):
|
||||
return {}
|
||||
comp = get_current_comp()
|
||||
return comp.GetData("openpype") or {}
|
||||
|
||||
|
||||
def on_pyblish_instance_toggled(instance, old_value, new_value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue