Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2866 from pypeclub/bugfix/nuke-gizmo-precollect-fix
Browse files Browse the repository at this point in the history
Nuke: gizmo precollect fix
  • Loading branch information
jakubjezek001 authored Mar 10, 2022
2 parents 78772b5 + 752af65 commit 6ff6673
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def process(self, context):
# Add all nodes in group instances.
if node.Class() == "Group":
# only alter families for render family
if "write" in families_ak.lower():
if families_ak and "write" in families_ak.lower():
target = node["render"].value()
if target == "Use existing frames":
# Local rendering
Expand Down
6 changes: 4 additions & 2 deletions openpype/hosts/nuke/plugins/publish/validate_write_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def process(self, instance):
# test if render in family test knob
# and only one item should be available
assert len(family_test) == 1, msg + " > More avalon attributes"
assert "render" in node[family_test[0]].value(), msg + \
assert "render" in node[family_test[0]].value() \
or "still" in node[family_test[0]].value(), msg + \
" > Not correct family"

# test if `file` knob in node, this way old
# non-group-node write could be detected
assert "file" not in node.knobs(), msg + \
Expand Down Expand Up @@ -74,6 +74,8 @@ def repair(cls, instance):
Create_name = "CreateWriteRender"
elif family == "prerender":
Create_name = "CreateWritePrerender"
elif family == "still":
Create_name = "CreateWriteStill"

# get appropriate plugin class
creator_plugin = None
Expand Down

0 comments on commit 6ff6673

Please sign in to comment.