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 #4266 from ynput/feature/OP-4146_nuke-workfile-tem…
Browse files Browse the repository at this point in the history
…plate-builder-add-creator-plugins
  • Loading branch information
jakubjezek001 authored Jan 6, 2023
2 parents afdba99 + c071140 commit 4f6ff40
Show file tree
Hide file tree
Showing 8 changed files with 700 additions and 31 deletions.
4 changes: 2 additions & 2 deletions openpype/hosts/maya/api/workfile_template_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def import_template(self, path):
Args:
path (str): A path to current template (usually given by
get_template_path implementation)
get_template_preset implementation)
Returns:
bool: Wether the template was succesfully imported or not
Expand Down Expand Up @@ -240,7 +240,7 @@ def cleanup_placeholder(self, placeholder, failed):
cmds.setAttr(node + ".hiddenInOutliner", True)

def load_succeed(self, placeholder, container):
self._parent_in_hierarhchy(placeholder, container)
self._parent_in_hierarchy(placeholder, container)

def _parent_in_hierarchy(self, placeholder, container):
"""Parent loaded container to placeholder's parent.
Expand Down
5 changes: 3 additions & 2 deletions openpype/hosts/nuke/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2865,10 +2865,11 @@ def get_group_io_nodes(nodes):
break

if input_node is None:
raise ValueError("No Input found")
log.warning("No Input found")

if output_node is None:
raise ValueError("No Output found")
log.warning("No Output found")

return input_node, output_node


Expand Down
8 changes: 3 additions & 5 deletions openpype/hosts/nuke/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
)
from .workfile_template_builder import (
NukePlaceholderLoadPlugin,
NukePlaceholderCreatePlugin,
build_workfile_template,
update_workfile_template,
create_placeholder,
Expand Down Expand Up @@ -139,7 +140,8 @@ def _show_workfiles():

def get_workfile_build_placeholder_plugins():
return [
NukePlaceholderLoadPlugin
NukePlaceholderLoadPlugin,
NukePlaceholderCreatePlugin
]


Expand Down Expand Up @@ -217,10 +219,6 @@ def _install_menu():
"Build Workfile from template",
lambda: build_workfile_template()
)
menu_template.addCommand(
"Update Workfile",
lambda: update_workfile_template()
)
menu_template.addSeparator()
menu_template.addCommand(
"Create Place Holder",
Expand Down
Loading

0 comments on commit 4f6ff40

Please sign in to comment.