From 13fb2409ed0622fa55bd1a2e091aa6f891303bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Samohel?= <33513211+antirotor@users.noreply.github.com> Date: Tue, 20 Apr 2021 18:16:49 +0200 Subject: [PATCH] fix sequence padding --- openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py b/openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py index 3b47a7cc97..d0c6c4eb14 100644 --- a/openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py +++ b/openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- """Redshift Proxy extractor.""" import os -import math import avalon.maya import openpype.api @@ -45,7 +44,7 @@ class ExtractRedshiftProxy(openpype.api.Extractor): # Padding is taken from number of digits of the end_frame. # Not sure where Redshift is taking it. repr_files = [ - "{}.{}{}".format(root, str(frame).rjust(int(math.log10(int(end_frame)) + 1), "0"), ext) # noqa: E501 + "{}.{}{}".format(root, str(frame).rjust(4, "0"), ext) # noqa: E501 for frame in range( int(start_frame), int(end_frame) + 1,