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 #2423 from Ellipsanime/add_burnins_current_frame_p…
Browse files Browse the repository at this point in the history
…adding

Add zero padding to otio burnins for "current_frame"
  • Loading branch information
jakubjezek001 authored Dec 20, 2021
2 parents e233412 + 165b5b0 commit 86fc268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openpype/scripts/otio_burnin.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ def _add_burnin(self, text, align, options, draw):
if frame_start is None:
replacement_final = replacement_size = str(MISSING_KEY_VALUE)
else:
replacement_final = "%{eif:n+" + str(frame_start) + ":d}"
replacement_final = "%{eif:n+" + str(frame_start) + ":d:" + \
str(len(str(frame_end))) + "}"
replacement_size = str(frame_end)

final_text = final_text.replace(
Expand Down

0 comments on commit 86fc268

Please sign in to comment.