#NEWLINE# def playblast_all_shots( self , extra_playblast_options = None ) : #NEWLINE# #INDENT# 'Playblasts all shots\n\n        :return:\n        ' #NEWLINE# shots = pm . ls ( type = 'shot' ) #NEWLINE# if ( len ( shots ) <= 0 ) : #NEWLINE# #INDENT# raise RuntimeError ( 'There are no Shots in your Camera Sequencer.' ) #NEWLINE# #UNINDENT# from anima.ui.progress_dialog import ProgressDialogManager #NEWLINE# pdm = ProgressDialogManager ( ) #NEWLINE# pdm . close ( ) #NEWLINE# caller = pdm . register ( len ( shots ) , 'Generating Playblasts...' ) #NEWLINE# generic_playblast_options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if extra_playblast_options : #NEWLINE# #INDENT# generic_playblast_options . update ( extra_playblast_options ) #NEWLINE# #UNINDENT# ( range_start , range_end ) = self . get_frame_range ( ) #NEWLINE# range_selected = False #NEWLINE# if ( ( range_end - range_start ) > 1 ) : #NEWLINE# #INDENT# range_selected = True #NEWLINE# generic_playblast_options [ 'startTime' ] = range_start #NEWLINE# generic_playblast_options [ 'endTime' ] = range_end #NEWLINE# #UNINDENT# audio_node = self . get_audio_node ( ) #NEWLINE# if audio_node : #NEWLINE# #INDENT# generic_playblast_options . update ( { #NEWLINE# #INDENT# 'useTraxSounds' : False , #NEWLINE# 'sound' : audio_node , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# generic_playblast_options [ 'useTraxSounds' ] = True #NEWLINE# #UNINDENT# temp_video_file_full_paths = [ ] #NEWLINE# for shot in shots : #NEWLINE# #INDENT# per_shot_playblast_options = copy . copy ( generic_playblast_options ) #NEWLINE# if range_selected : #NEWLINE# #INDENT# shot_start_frame = shot . startFrame . get ( ) #NEWLINE# shot_end_frame = shot . endFrame . get ( ) #NEWLINE# if ( ( ( range_start > shot_start_frame ) and ( range_start > shot_end_frame ) ) or ( ( range_end < shot_start_frame ) and ( range_end < shot_end_frame ) ) ) : #NEWLINE# #INDENT# caller . step ( ) #NEWLINE# continue #NEWLINE# #UNINDENT# #UNINDENT# temp_video_file_full_path = self . playblast_shot ( shot , per_shot_playblast_options ) #NEWLINE# temp_video_file_full_paths . append ( temp_video_file_full_path ) #NEWLINE# caller . step ( ) #NEWLINE# #UNINDENT# return temp_video_file_full_paths