Skip to content

Commit

Permalink
Houdini local render: support single frame
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Apr 8, 2024
1 parent fe6c1fc commit a6ca148
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ def process(self, instance):
staging_dir = os.path.dirname(aov_filepaths[0])
ext = aov_filepaths[0].split(".")[-1]

# Support Single frame.
# The integrator wants single files to be a single
# filename instead of a list.
# More info: https://github.com/ynput/ayon-core/issues/238
if len(aov_filenames) == 1:
aov_filenames = aov_filenames[0]

aov_instance.data.update({
# 'label': label,
"task": instance.data["task"],
Expand All @@ -85,6 +92,7 @@ def process(self, instance):
}
]
})
self.log.debug(aov_instance.data)

# Remove Mantra instance
# I can't remove it here as I still need it to trigger the render.
Expand Down

0 comments on commit a6ca148

Please sign in to comment.