src/jmLightToolkit.py
def lightOptimizer__setMultiplesValues(self):
        """ Set multiples values from 'lightOptimizer' item selected. """
        value = self.doubleSpinBox_lightOptimizer_value.value()
        lights = []

        for item in self.listWidget_lightOptimizer.selectedItems():
            datas = item.data(CUSTOM_INDEX)
            light_node = pm.PyNode("%s.%s" % (datas["lightname"], datas["attribute"]))
            lights.append(light_node)

        for light in lights:
            light.set(value)

        _logger.info("lights : %s, value : %s" % (lights, value))
 Set multiples values from 'lightOptimizer' item selected. 
Set multiples values from 'lightOptimizer' item selected.
Set multiples values from ' lightOptimizer ' item selected .
def lightOptimizer__setMultiplesValues(self):
        value = self.doubleSpinBox_lightOptimizer_value.value()
        lights = []
        for item in self.listWidget_lightOptimizer.selectedItems():
            datas = item.data(CUSTOM_INDEX)
            light_node = pm.PyNode("%s.%s" % (datas["lightname"], datas["attribute"]))
            lights.append(light_node)
        for light in lights:
            light.set(value)
        _logger.info("lights : %s, value : %s" % (lights, value))
def lightOptimizer__setMultiplesValues ( self ) : value = self . doubleSpinBox_lightOptimizer_value . value ( ) lights = [ ] for item in self . listWidget_lightOptimizer . selectedItems ( ) : datas = item . data ( CUSTOM_INDEX ) light_node = pm . PyNode ( "%s.%s" % ( datas [ "lightname" ] , datas [ "attribute" ] ) ) lights . append ( light_node ) for light in lights : light . set ( value ) _logger . info ( "lights : %s, value : %s" % ( lights , value ) )
Set multiples values from 'lightOptimizer' item selected.
Set multiples values from ' lightOptimizer ' item selected .
""" Set multiples values from 'lightOptimizer' item selected. """
self