From 3b93fae6f7e317986503544936e262180e94f63b Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Fri, 15 Jan 2021 16:02:15 +0100 Subject: [PATCH] Harmon to Deadline - fix for non alpha last character on write node Number or non alpha (._) last characters in write node create problems. Remove them as this value is internal and not used in final publish either way --- pype/plugins/harmony/publish/collect_farm_render.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pype/plugins/harmony/publish/collect_farm_render.py b/pype/plugins/harmony/publish/collect_farm_render.py index 065d52c3fc..be9c3dd008 100644 --- a/pype/plugins/harmony/publish/collect_farm_render.py +++ b/pype/plugins/harmony/publish/collect_farm_render.py @@ -77,11 +77,11 @@ class CollectFarmRender(pype.lib.abstract_collect_render. # is sequence start node on write node offsetting whole sequence? expected_files = [] - # add '.' if last character of file prefix is a number + # remove last char if last character of file prefix is a number file_prefix = info[0] - last_char = file_prefix[-1] - if str.isdigit(last_char): - file_prefix += '.' + while not str.isalpha(file_prefix[-1]): + file_prefix = file_prefix[:-1] + for frame in range(start, end): expected_files.append( path / "{}{}.{}".format(