#NEWLINE# @ publisher ( [ 'animation' , 'previs' , 'shot previs' ] , publisher_type = POST_PUBLISHER_TYPE ) #NEWLINE# def generate_playblast( ) : #NEWLINE# #INDENT# 'generates a playblast for the current scene\n    ' #NEWLINE# import anima #NEWLINE# from anima import utils #NEWLINE# reload ( anima ) #NEWLINE# reload ( utils ) #NEWLINE# reload ( auxiliary ) #NEWLINE# for shot in pm . ls ( type = 'shot' ) : #NEWLINE# #INDENT# if shot . hasAttr ( 'handle' ) : #NEWLINE# #INDENT# shot . handle . set ( 0 ) #NEWLINE# #UNINDENT# #UNINDENT# sp = auxiliary . Playblaster ( ) #NEWLINE# sp . batch_mode = True #NEWLINE# video_files = sp . playblast ( ) #NEWLINE# sp . upload_outputs ( sp . version , video_files )