Nuke: fixing loading and updating effects

This commit is contained in:
Jakub Jezek 2021-07-20 13:54:25 +02:00
parent 7d3195346a
commit b6e28c19b4
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
2 changed files with 11 additions and 7 deletions

View file

@ -214,7 +214,7 @@ class LoadEffects(api.Loader):
self.log.warning(e)
continue
if isinstance(v, list) and len(v) > 3:
if isinstance(v, list) and len(v) > 4:
node[k].setAnimated()
for i, value in enumerate(v):
if isinstance(value, list):

View file

@ -217,7 +217,7 @@ class LoadEffectsInputProcess(api.Loader):
self.log.warning(e)
continue
if isinstance(v, list) and len(v) > 3:
if isinstance(v, list) and len(v) > 4:
node[k].setAnimated()
for i, value in enumerate(v):
if isinstance(value, list):
@ -239,10 +239,10 @@ class LoadEffectsInputProcess(api.Loader):
output = nuke.createNode("Output")
output.setInput(0, pre_node)
# try to place it under Viewer1
if not self.connect_active_viewer(GN):
nuke.delete(GN)
return
# # try to place it under Viewer1
# if not self.connect_active_viewer(GN):
# nuke.delete(GN)
# return
# get all versions in list
versions = io.find({
@ -298,7 +298,11 @@ class LoadEffectsInputProcess(api.Loader):
viewer["input_process_node"].setValue(group_node_name)
# put backdrop under
lib.create_backdrop(label="Input Process", layer=2, nodes=[viewer, group_node], color="0x7c7faaff")
lib.create_backdrop(
label="Input Process",
layer=2,
nodes=[viewer, group_node],
color="0x7c7faaff")
return True