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

Commit

Permalink
hound(hiero): suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubjezek001 committed Nov 18, 2020
1 parent fb6619f commit cabbc53
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pype/plugins/hiero/publish/extract_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def process(self, instance):

# create new instance and inherit data
data = {}
for key, value in instance.data.iteritems():
for key, value in instance.data.items():
data[key] = value

# change names
Expand All @@ -84,7 +84,7 @@ def process(self, instance):
dst_dir = self.resource_destination_dir(instance)

# change paths in effects to files
for k, effect in effects["effects"].items():
for _k, effect in effects["effects"].items():
trn = self.copy_linked_files(effect, dst_dir)
if trn:
transfers.append((trn[0], trn[1]))
Expand Down Expand Up @@ -210,7 +210,8 @@ def resource_destination_dir(self, instance):

pixel_aspect = instance.data.get("pixelAspect")
if pixel_aspect:
anatomy_data["pixel_aspect"] = float("{:0.2f}".format(pixel_aspect))
anatomy_data["pixel_aspect"] = float(
"{:0.2f}".format(pixel_aspect))

fps = instance.data.get("fps")
if resolution_height:
Expand Down

0 comments on commit cabbc53

Please sign in to comment.