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

Commit

Permalink
Merge pull request #1226 from pypeclub/2.x/fix/harmony_task_duplicati…
Browse files Browse the repository at this point in the history
…on_in_subset_name_render

Fix - handle duplication of Task name
  • Loading branch information
mkolar authored Mar 31, 2021
2 parents c874f84 + 540ca30 commit 154e4d2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pype/plugins/harmony/publish/collect_farm_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,16 @@ def get_instances(self, context):
# TODO: handle pixel aspect and frame step
# TODO: set Deadline stuff (pools, priority, etc. by presets)
# because of using 'renderFarm' as a family, replace 'Farm' with
# capitalized task name
subset_name = node.split("/")[1].replace(
# capitalized task name - issue of avalon-core Creator app
subset_name = node.split("/")[1]
task_name = context.data["anatomyData"]["task"].capitalize()
replace_str = ""
if task_name.lower() not in subset_name.lower():
replace_str = task_name
subset_name = subset_name.replace(
'Farm',
context.data["anatomyData"]["task"].capitalize())
replace_str)

render_instance = HarmonyRenderInstance(
version=version,
time=api.time(),
Expand Down

0 comments on commit 154e4d2

Please sign in to comment.