#NEWLINE# def getClip( self , index = None ) : #NEWLINE# #INDENT# '\n        @param index: Position in the playlist\n\n        @return: clip object from the playlist specified by index.\n\n        For example getClip(0) returns the first clip from the playlist.\n        If called without an index the current clip will be returned.\n        ' #NEWLINE# if self . isLoaded ( ) : #NEWLINE# #INDENT# if ( index == None ) : #NEWLINE# #INDENT# clip = self . getCurrentClip ( ) #NEWLINE# return clip #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return index . playlist [ index ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return None