Skip to content

Commit

Permalink
merge template path to current scene instead opening the template
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Jul 15, 2024
1 parent fe27908 commit 9ac32dd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions client/ayon_houdini/api/workfile_template_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ def import_template(self, path):

# TODO Check if template is already imported

# Load template workfile
self.host.open_workfile(path)

return True
# Merge (Load) template workfile in the current scene.
try:
hou.hipFile.merge(path, ignore_load_warnings=True)
return True
except hou.OperationFailed:
return False


class HoudiniPlaceholderPlugin(PlaceholderPlugin):
Expand Down

0 comments on commit 9ac32dd

Please sign in to comment.