mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merged in bugfix/nuke-lutLoader (pull request #323)
fix(nuke): lutJson didn't load fully as unexisted nuke node knob
This commit is contained in:
commit
c2effff3fb
2 changed files with 30 additions and 0 deletions
|
|
@ -86,6 +86,13 @@ class LoadLuts(api.Loader):
|
|||
for k, v in ef_val["node"].items():
|
||||
if k in self.ignore_attr:
|
||||
continue
|
||||
|
||||
try:
|
||||
node[k].value()
|
||||
except NameError as e:
|
||||
self.log.warning(e)
|
||||
continue
|
||||
|
||||
if isinstance(v, list) and len(v) > 4:
|
||||
node[k].setAnimated()
|
||||
for i, value in enumerate(v):
|
||||
|
|
@ -199,6 +206,13 @@ class LoadLuts(api.Loader):
|
|||
for k, v in ef_val["node"].items():
|
||||
if k in self.ignore_attr:
|
||||
continue
|
||||
|
||||
try:
|
||||
node[k].value()
|
||||
except NameError as e:
|
||||
self.log.warning(e)
|
||||
continue
|
||||
|
||||
if isinstance(v, list) and len(v) > 3:
|
||||
node[k].setAnimated()
|
||||
for i, value in enumerate(v):
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import json
|
|||
from collections import OrderedDict
|
||||
from pype.nuke import lib
|
||||
|
||||
|
||||
class LoadLutsInputProcess(api.Loader):
|
||||
"""Loading colorspace soft effect exported from nukestudio"""
|
||||
|
||||
|
|
@ -86,6 +87,13 @@ class LoadLutsInputProcess(api.Loader):
|
|||
for k, v in ef_val["node"].items():
|
||||
if k in self.ignore_attr:
|
||||
continue
|
||||
|
||||
try:
|
||||
node[k].value()
|
||||
except NameError as e:
|
||||
self.log.warning(e)
|
||||
continue
|
||||
|
||||
if isinstance(v, list) and len(v) > 4:
|
||||
node[k].setAnimated()
|
||||
for i, value in enumerate(v):
|
||||
|
|
@ -101,6 +109,7 @@ class LoadLutsInputProcess(api.Loader):
|
|||
(workfile_first_frame + i))
|
||||
else:
|
||||
node[k].setValue(v)
|
||||
|
||||
node.setInput(0, pre_node)
|
||||
pre_node = node
|
||||
|
||||
|
|
@ -201,6 +210,13 @@ class LoadLutsInputProcess(api.Loader):
|
|||
for k, v in ef_val["node"].items():
|
||||
if k in self.ignore_attr:
|
||||
continue
|
||||
|
||||
try:
|
||||
node[k].value()
|
||||
except NameError as e:
|
||||
self.log.warning(e)
|
||||
continue
|
||||
|
||||
if isinstance(v, list) and len(v) > 3:
|
||||
node[k].setAnimated()
|
||||
for i, value in enumerate(v):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue