mirror of
				https://github.com/stevenrobertson/cuburn.git
				synced 2025-11-04 02:10:45 -05:00 
			
		
		
		
	Add --nopause option for batch with preview
This commit is contained in:
		
							
								
								
									
										5
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								main.py
									
									
									
									
									
								
							@ -176,6 +176,9 @@ def main(args):
 | 
			
		||||
        def poll(dt):
 | 
			
		||||
            out = next(frames, False)
 | 
			
		||||
            if out is False:
 | 
			
		||||
                if args.nopause:
 | 
			
		||||
                    pyglet.app.exit()
 | 
			
		||||
                else:
 | 
			
		||||
                    label.text = "Done. ('q' to quit)"
 | 
			
		||||
                    pyglet.clock.unschedule(poll)
 | 
			
		||||
            elif out is not None:
 | 
			
		||||
@ -219,6 +222,8 @@ if __name__ == "__main__":
 | 
			
		||||
        help="Do not render any frame for which a .png already exists.")
 | 
			
		||||
    parser.add_argument('--raw', action='store_true', dest='raw',
 | 
			
		||||
        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="""
 | 
			
		||||
        Control which frames are rendered from a genome sequence. If '-k' is
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user