Skip to content

Commit

Permalink
refactor frames to fix condition to be the same as in extract_render
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Aug 7, 2024
1 parent 9a6c036 commit 0b1cafc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/ayon_houdini/plugins/publish/extract_rop.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,16 @@ def process(self, instance: pyblish.api.Instance):
)
ext = ext.lstrip(".")

last_published = instance.data.get("last_version_published_files")

self.log.debug(
"Rendering {node_path} to {location}".format(
node_path=rop_node.path(),
location=instance.data['stagingDir'] if isinstance(files, (list, tuple)) else files
)
)
if last_published and len(last_published) > 1:
frames_to_fix = clique.parse(instance.data["frames_to_fix"], "{ranges}")

if len(set(frames_to_fix)) > 1:
# Render only frames to fix
frames_to_fix = clique.parse(instance.data["frames_to_fix"], "{ranges}")
for frame_range in frames_to_fix.separate():
frame_range = list(frame_range)
self.log.debug(
Expand Down

0 comments on commit 0b1cafc

Please sign in to comment.