mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Add --nopause option for batch with preview
This commit is contained in:
parent
6c2df777b0
commit
6144601259
5
main.py
5
main.py
@ -176,6 +176,9 @@ def main(args):
|
|||||||
def poll(dt):
|
def poll(dt):
|
||||||
out = next(frames, False)
|
out = next(frames, False)
|
||||||
if out is False:
|
if out is False:
|
||||||
|
if args.nopause:
|
||||||
|
pyglet.app.exit()
|
||||||
|
else:
|
||||||
label.text = "Done. ('q' to quit)"
|
label.text = "Done. ('q' to quit)"
|
||||||
pyglet.clock.unschedule(poll)
|
pyglet.clock.unschedule(poll)
|
||||||
elif out is not None:
|
elif out is not None:
|
||||||
@ -219,6 +222,8 @@ if __name__ == "__main__":
|
|||||||
help="Do not render any frame for which a .png already exists.")
|
help="Do not render any frame for which a .png already exists.")
|
||||||
parser.add_argument('--raw', action='store_true', dest='raw',
|
parser.add_argument('--raw', action='store_true', dest='raw',
|
||||||
help="Do not write files; instead, send raw RGBA data to stdout.")
|
help="Do not write files; instead, send raw RGBA data to stdout.")
|
||||||
|
parser.add_argument('--nopause', action='store_true',
|
||||||
|
help="Don't pause after rendering when preview is up")
|
||||||
|
|
||||||
seq = parser.add_argument_group('Sequence options', description="""
|
seq = parser.add_argument_group('Sequence options', description="""
|
||||||
Control which frames are rendered from a genome sequence. If '-k' is
|
Control which frames are rendered from a genome sequence. If '-k' is
|
||||||
|
Loading…
Reference in New Issue
Block a user