fix sequence padding

This commit is contained in:
Ondřej Samohel 2021-04-20 18:16:49 +02:00 committed by GitHub
parent b04b464541
commit 13fb2409ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,