mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #1225 from pypeclub/fix/harmony_task_duplication_in_subset_name_render
Fix - handle duplication of Task name
This commit is contained in:
commit
49fafb788b
1 changed files with 9 additions and 3 deletions
|
|
@ -124,10 +124,16 @@ class CollectFarmRender(pype.lib.abstract_collect_render.
|
|||
# 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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue