add command line options to skip inkscape rendering

This commit is contained in:
Andreas Hubel 2017-10-24 19:45:16 +02:00
parent c593a0dd07
commit d851c1d989
2 changed files with 44 additions and 31 deletions

View file

@ -39,6 +39,10 @@ parser.add_argument('--skip', nargs='+', action="store", type=str, help='''
Example - only generate outro: ./make.py yourproject/ --skip pause bg
Example - only generate pause and background: ./make.py yourproject/ --skip out
''')
parser.add_argument('--skip-frames', action="store", default=None, type=int, help='''
Skip first n frames e.g. to quickly rerender during debugging.
Usage: ./make.py yourproject/ --debug --skip-frames 300
''')
if len(sys.argv) < 2:
parser.print_help()
@ -76,6 +80,7 @@ except ImportError:
# using --debug skips the threading, the network fetching of the schedule and
# just renders one type of video
renderlib.debug = args.debug
renderlib.args = args
#sys.exit(1)
def render(infile, outfile, sequence, parameters={}, workdir=os.path.join(projectname, 'artwork')):