#NEWLINE# @ staticmethod #NEWLINE# def __setConstraints( empty , armature , poseBone , lamp ) : #NEWLINE# #INDENT# constraints = lamp . constraints #NEWLINE# constraint = constraints . new ( type = 'COPY_LOCATION' ) #NEWLINE# constraint . name = 'mmd_lamp_location' #NEWLINE# constraint . target = armature #NEWLINE# constraint . subtarget = poseBone . name #NEWLINE# constraint = constraints . new ( type = 'TRACK_TO' ) #NEWLINE# constraint . name = 'mmd_lamp_track' #NEWLINE# constraint . target = empty #NEWLINE# constraint . track_axis = 'TRACK_NEGATIVE_Z' #NEWLINE# constraint . up_axis = 'UP_Y' #NEWLINE# constraints = poseBone . constraints #NEWLINE# constraint = constraints . new ( type = 'TRACK_TO' ) #NEWLINE# constraint . name = 'mmd_lamp_track' #NEWLINE# constraint . target = empty #NEWLINE# constraint . track_axis = 'TRACK_NEGATIVE_Y' #NEWLINE# constraint . up_axis = 'UP_Z'