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

Commit

Permalink
Fix dict_keys object is not subscriptable (Py3+)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Dec 28, 2021
1 parent cb99b0a commit 74cfde5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openpype/hosts/maya/plugins/publish/collect_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,14 @@ def process(self, context):
publish_meta_path = None
for aov in exp_files:
full_paths = []
for file in aov[aov.keys()[0]]:
aov_first_key = list(aov.keys())[0]
for file in aov[aov_first_key]:
full_path = os.path.join(workspace, default_render_file,
file)
full_path = full_path.replace("\\", "/")
full_paths.append(full_path)
publish_meta_path = os.path.dirname(full_path)
aov_dict[aov.keys()[0]] = full_paths
aov_dict[aov_first_key] = full_paths

frame_start_render = int(self.get_render_attribute(
"startFrame", layer=layer_name))
Expand Down

0 comments on commit 74cfde5

Please sign in to comment.