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

Commit

Permalink
make sure frame is filled durectly in sequence condition
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jul 27, 2022
1 parent 74ad4a5 commit b5cdebe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openpype/plugins/publish/integrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,13 @@ def prepare_representation(self, repre,
anatomy_filled = anatomy.format(template_data)
template_filled = anatomy_filled[template_name]["path"]
repre_context = template_filled.used_values

# Make sure context contains frame
# NOTE: Frame would not be available only if template does not
# contain '{frame}' in template -> Do we want support it?
if not is_udim:
repre_context["frame"] = first_index_padded

self.log.debug("Template filled: {}".format(str(template_filled)))
dst_collection = assemble([os.path.normpath(template_filled)])

Expand Down Expand Up @@ -718,9 +725,6 @@ def prepare_representation(self, repre,
"context": repre_context
}

if is_sequence_representation and repre.get("frameStart") is not None:
representation["context"]["frame"] = template_data["frame"]

return {
"representation": representation,
"anatomy_data": template_data,
Expand Down

0 comments on commit b5cdebe

Please sign in to comment.