mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merged in bugfix/PYPE-428-dazzle-feedback-publish-errors (pull request #307)
fix: some changes improving publishing and loading luts
This commit is contained in:
commit
79104b278c
4 changed files with 18 additions and 0 deletions
|
|
@ -440,6 +440,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
Returns:
|
Returns:
|
||||||
None
|
None
|
||||||
"""
|
"""
|
||||||
|
src = os.path.normpath(src)
|
||||||
|
dst = os.path.normpath(dst)
|
||||||
|
|
||||||
self.log.debug("Copying file .. {} -> {}".format(src, dst))
|
self.log.debug("Copying file .. {} -> {}".format(src, dst))
|
||||||
dirname = os.path.dirname(dst)
|
dirname = os.path.dirname(dst)
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ class LoadLuts(api.Loader):
|
||||||
order = 0
|
order = 0
|
||||||
icon = "cc"
|
icon = "cc"
|
||||||
color = style.colors.light
|
color = style.colors.light
|
||||||
|
ignore_attr = ["useLifetime"]
|
||||||
|
|
||||||
def load(self, context, name, namespace, data):
|
def load(self, context, name, namespace, data):
|
||||||
"""
|
"""
|
||||||
|
|
@ -83,6 +84,8 @@ class LoadLuts(api.Loader):
|
||||||
for ef_name, ef_val in nodes_order.items():
|
for ef_name, ef_val in nodes_order.items():
|
||||||
node = nuke.createNode(ef_val["class"])
|
node = nuke.createNode(ef_val["class"])
|
||||||
for k, v in ef_val["node"].items():
|
for k, v in ef_val["node"].items():
|
||||||
|
if k in self.ignore_attr:
|
||||||
|
continue
|
||||||
if isinstance(v, list) and len(v) > 4:
|
if isinstance(v, list) and len(v) > 4:
|
||||||
node[k].setAnimated()
|
node[k].setAnimated()
|
||||||
for i, value in enumerate(v):
|
for i, value in enumerate(v):
|
||||||
|
|
@ -194,6 +197,8 @@ class LoadLuts(api.Loader):
|
||||||
for ef_name, ef_val in nodes_order.items():
|
for ef_name, ef_val in nodes_order.items():
|
||||||
node = nuke.createNode(ef_val["class"])
|
node = nuke.createNode(ef_val["class"])
|
||||||
for k, v in ef_val["node"].items():
|
for k, v in ef_val["node"].items():
|
||||||
|
if k in self.ignore_attr:
|
||||||
|
continue
|
||||||
if isinstance(v, list) and len(v) > 3:
|
if isinstance(v, list) and len(v) > 3:
|
||||||
node[k].setAnimated()
|
node[k].setAnimated()
|
||||||
for i, value in enumerate(v):
|
for i, value in enumerate(v):
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ class LoadLutsInputProcess(api.Loader):
|
||||||
order = 0
|
order = 0
|
||||||
icon = "eye"
|
icon = "eye"
|
||||||
color = style.colors.alert
|
color = style.colors.alert
|
||||||
|
ignore_attr = ["useLifetime"]
|
||||||
|
|
||||||
def load(self, context, name, namespace, data):
|
def load(self, context, name, namespace, data):
|
||||||
"""
|
"""
|
||||||
|
|
@ -83,6 +84,8 @@ class LoadLutsInputProcess(api.Loader):
|
||||||
for ef_name, ef_val in nodes_order.items():
|
for ef_name, ef_val in nodes_order.items():
|
||||||
node = nuke.createNode(ef_val["class"])
|
node = nuke.createNode(ef_val["class"])
|
||||||
for k, v in ef_val["node"].items():
|
for k, v in ef_val["node"].items():
|
||||||
|
if k in self.ignore_attr:
|
||||||
|
continue
|
||||||
if isinstance(v, list) and len(v) > 4:
|
if isinstance(v, list) and len(v) > 4:
|
||||||
node[k].setAnimated()
|
node[k].setAnimated()
|
||||||
for i, value in enumerate(v):
|
for i, value in enumerate(v):
|
||||||
|
|
@ -196,6 +199,8 @@ class LoadLutsInputProcess(api.Loader):
|
||||||
for ef_name, ef_val in nodes_order.items():
|
for ef_name, ef_val in nodes_order.items():
|
||||||
node = nuke.createNode(ef_val["class"])
|
node = nuke.createNode(ef_val["class"])
|
||||||
for k, v in ef_val["node"].items():
|
for k, v in ef_val["node"].items():
|
||||||
|
if k in self.ignore_attr:
|
||||||
|
continue
|
||||||
if isinstance(v, list) and len(v) > 3:
|
if isinstance(v, list) and len(v) > 3:
|
||||||
node[k].setAnimated()
|
node[k].setAnimated()
|
||||||
for i, value in enumerate(v):
|
for i, value in enumerate(v):
|
||||||
|
|
|
||||||
|
|
@ -16,3 +16,9 @@ class ValidateActiveViewer(pyblish.api.ContextPlugin):
|
||||||
assert viewer_process_node, (
|
assert viewer_process_node, (
|
||||||
"Missing active viewer process! Please click on output write node and push key number 1-9"
|
"Missing active viewer process! Please click on output write node and push key number 1-9"
|
||||||
)
|
)
|
||||||
|
active_viewer = context.data["ActiveViewer"]
|
||||||
|
active_input = active_viewer.activeInput()
|
||||||
|
|
||||||
|
assert active_input is not None, (
|
||||||
|
"Missing active viewer input! Please click on output write node and push key number 1-9"
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue