#NEWLINE# def update_sp( self , context ) : #NEWLINE# #INDENT# sce = context . scene #NEWLINE# skp = sce . commotion_skp #NEWLINE# props = sce . commotion #NEWLINE# key = context . active_object . data . shape_keys #NEWLINE# if key . use_relative : #NEWLINE# #INDENT# for sps in skp : #NEWLINE# #INDENT# if sps . selected : #NEWLINE# #INDENT# key . key_blocks [ sps . index ] . value = props . shape_value #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for ob in context . selected_objects : #NEWLINE# #INDENT# for sps in skp : #NEWLINE# #INDENT# if context . selected : #NEWLINE# #INDENT# ob . data . shape_keys . key_blocks [ sps . index ] . interpolation = props . shape_interpolation