src/jmLightToolkit.py
def _getAllLights(self, get_shapes=False):
        """ Get all standard/Arnold lights from scene.

            Args:
                get_shapes (bool): Return 'shape' if True, otherwrise return 'transform'.

            Returns:
                (list): All lights from scene
        """
        lights = []
        for lgt_type in self.lgt_types:
            lights.extend(pm.ls(type=lgt_type))

        # Return if list is empty
        if not lights:
            _logger.warning("No lights in scene")
            return None

        # Get Transform if not 'get_shapes'
        if not get_shapes:
            lights = [shape.getParent() for shape in lights]

        _logger.debug("_getAllLights : %s" % lights)
        return lights
 Get all standard/Arnold lights from scene.

            Args:
                get_shapes (bool): Return 'shape' if True, otherwrise return 'transform'.

            Returns:
                (list): All lights from scene
        
Get all standard/Arnold lights from scene.
Get all standard / Arnold lights from scene .
def _getAllLights(self, get_shapes=False):
        lights = []
        for lgt_type in self.lgt_types:
            lights.extend(pm.ls(type=lgt_type))
        if not lights:
            _logger.warning("No lights in scene")
            return None
        if not get_shapes:
            lights = [shape.getParent() for shape in lights]
        _logger.debug("_getAllLights : %s" % lights)
        return lights
def _getAllLights ( self , get_shapes = False ) : lights = [ ] for lgt_type in self . lgt_types : lights . extend ( pm . ls ( type = lgt_type ) ) if not lights : _logger . warning ( "No lights in scene" ) return None if not get_shapes : lights = [ shape . getParent ( ) for shape in lights ] _logger . debug ( "_getAllLights : %s" % lights ) return lights
Get all standard/Arnold lights from scene.
Get all standard / Arnold lights from scene .
""" Get all standard/Arnold lights from scene.

            Args:
                get_shapes (bool): Return 'shape' if True, otherwrise return 'transform'.

            Returns:
                (list): All lights from scene
        """ # Return if list is empty # Get Transform if not 'get_shapes'
All lights from scene
All lights from scene
(list)
self
get_shapes
Return 'shape' if True, otherwrise return 'transform'.
Return ' shape ' if True otherwrise return ' transform ' .