src/jmLightToolkit.py
def lightOptimizer__selectLightsFromList(self):
        """ Select lights from 'lightOptimizer' item selected. """
        # Get lightname from list
        lights = []
        for item in self.listWidget_lightOptimizer.selectedItems():
            datas = item.data(CUSTOM_INDEX)
            lights.append(pm.PyNode(datas["lightname"]))

        # Get transform
        lights_transform = [node.getParent() for node in lights]
        pm.select(lights_transform)

        return_lgts_name = [lgts.name() for lgts in lights_transform]
        _logger.info("Select : %s" % return_lgts_name)
 Select lights from 'lightOptimizer' item selected. 
Select lights from 'lightOptimizer' item selected.
Select lights from ' lightOptimizer ' item selected .
def lightOptimizer__selectLightsFromList(self):
        lights = []
        for item in self.listWidget_lightOptimizer.selectedItems():
            datas = item.data(CUSTOM_INDEX)
            lights.append(pm.PyNode(datas["lightname"]))
        lights_transform = [node.getParent() for node in lights]
        pm.select(lights_transform)
        return_lgts_name = [lgts.name() for lgts in lights_transform]
        _logger.info("Select : %s" % return_lgts_name)
def lightOptimizer__selectLightsFromList ( self ) : lights = [ ] for item in self . listWidget_lightOptimizer . selectedItems ( ) : datas = item . data ( CUSTOM_INDEX ) lights . append ( pm . PyNode ( datas [ "lightname" ] ) ) lights_transform = [ node . getParent ( ) for node in lights ] pm . select ( lights_transform ) return_lgts_name = [ lgts . name ( ) for lgts in lights_transform ] _logger . info ( "Select : %s" % return_lgts_name )
Select lights from 'lightOptimizer' item selected.
Select lights from ' lightOptimizer ' item selected .
""" Select lights from 'lightOptimizer' item selected. """ # Get lightname from list # Get transform
self