#NEWLINE# def check_sequence_name( self ) : #NEWLINE# #INDENT# 'checks sequence name and asks the user to set one if maya is in UI\n        mode and there is no sequence name set\n        ' #NEWLINE# sequencer = pm . ls ( type = 'sequencer' ) [ 0 ] #NEWLINE# sequence_name = sequencer . getAttr ( 'sequence_name' ) #NEWLINE# if ( ( sequence_name == '' ) and ( not pm . general . about ( batch = 1 ) ) and ( not self . batch_mode ) ) : #NEWLINE# #INDENT# result = pm . promptDialog ( title = 'Please enter a Sequence Name' , message = 'Sequence Name:' , button = [ 'OK' , 'Cancel' ] , defaultButton = 'OK' , cancelButton = 'Cancel' , dismissString = 'Cancel' ) #NEWLINE# if ( result == 'OK' ) : #NEWLINE# #INDENT# sequencer . setAttr ( 'sequence_name' , pm . promptDialog ( query = True , text = True ) )