#NEWLINE# def offset_name( offset , threshold , mode , context ) : #NEWLINE# #INDENT# obs = context . selected_objects #NEWLINE# dist = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ob in obs : #NEWLINE# #INDENT# dist [ ob ] = ob . name #NEWLINE# #UNINDENT# if ( 'REVERSE' in mode ) : #NEWLINE# #INDENT# dist = sorted ( dist , key = dist . get , reverse = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dist = sorted ( dist , key = dist . get ) #NEWLINE# #UNINDENT# i = 0 #NEWLINE# i2 = threshold #NEWLINE# for ob in dist : #NEWLINE# #INDENT# data_access ( mode , ob , i , context ) #NEWLINE# if ( i2 > 1 ) : #NEWLINE# #INDENT# if ( i2 <= ( dist . index ( ob ) + 1 ) ) : #NEWLINE# #INDENT# i2 += obs #NEWLINE# i += offset #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# i += offset