Skip to content

Commit

Permalink
Add framespec parameter format check (#1389)
Browse files Browse the repository at this point in the history
To determine Blender render command format
  • Loading branch information
n-jay authored Jul 10, 2024
1 parent 40b13e0 commit 0f8a717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cuesubmit/cuesubmit/Submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from __future__ import absolute_import

from builtins import str
import re

import outline
import outline.cuerun
Expand Down Expand Up @@ -73,7 +74,7 @@ def buildBlenderCmd(layerData):
renderCommand += ' -o {}'.format(outputPath)
if outputFormat:
renderCommand += ' -F {}'.format(outputFormat)
if frameRange:
if re.match(r"^\d+-\d+$", frameRange):
# Render frames from start to end (inclusive) via '-a' command argument
renderCommand += (' -s {startFrame} -e {endFrame} -a'
.format(startFrame=Constants.FRAME_START_TOKEN,
Expand Down

0 comments on commit 0f8a717

Please sign in to comment.