src/jmLightToolkit.py
def deleteDisplayBlocker(self):
        """ Delete all 'aiLightBlocker' display. """
        # Delete All expression
        pm.delete([expr for expr in pm.ls(typ="expression") if "displayBlocker" in expr.name()])

        # Delete Folder
        if pm.objExists(self.display_blocker_grp):
            pm.delete(self.display_blocker_grp)

        # Delete light Utils if empty
        if pm.objExists(self.mtoa_utils_grp):
            if not pm.PyNode(self.mtoa_utils_grp).getChildren():
                pm.delete(self.mtoa_utils_grp)

        # Delete Shaders
        if pm.objExists("displayBlocker_SHAD"):
            pm.delete("displayBlocker_SHAD")

        if pm.objExists("displayBlocker_SDEG"):
            pm.delete("displayBlocker_SDEG")

        self.__displayBlockerCSS()
        _logger.info("'aiLightBlocker' display successfully deleted.")
        return True
 Delete all 'aiLightBlocker' display. 
Delete all 'aiLightBlocker' display.
Delete all ' aiLightBlocker ' display .
def deleteDisplayBlocker(self):
        pm.delete([expr for expr in pm.ls(typ="expression") if "displayBlocker" in expr.name()])
        if pm.objExists(self.display_blocker_grp):
            pm.delete(self.display_blocker_grp)
        if pm.objExists(self.mtoa_utils_grp):
            if not pm.PyNode(self.mtoa_utils_grp).getChildren():
                pm.delete(self.mtoa_utils_grp)
        if pm.objExists("displayBlocker_SHAD"):
            pm.delete("displayBlocker_SHAD")
        if pm.objExists("displayBlocker_SDEG"):
            pm.delete("displayBlocker_SDEG")
        self.__displayBlockerCSS()
        _logger.info("'aiLightBlocker' display successfully deleted.")
        return True
def deleteDisplayBlocker ( self ) : pm . delete ( [ expr for expr in pm . ls ( typ = "expression" ) if "displayBlocker" in expr . name ( ) ] ) if pm . objExists ( self . display_blocker_grp ) : pm . delete ( self . display_blocker_grp ) if pm . objExists ( self . mtoa_utils_grp ) : if not pm . PyNode ( self . mtoa_utils_grp ) . getChildren ( ) : pm . delete ( self . mtoa_utils_grp ) if pm . objExists ( "displayBlocker_SHAD" ) : pm . delete ( "displayBlocker_SHAD" ) if pm . objExists ( "displayBlocker_SDEG" ) : pm . delete ( "displayBlocker_SDEG" ) self . __displayBlockerCSS ( ) _logger . info ( "'aiLightBlocker' display successfully deleted." ) return True
Delete all 'aiLightBlocker' display.
Delete all ' aiLightBlocker ' display .
""" Delete all 'aiLightBlocker' display. """ # Delete All expression # Delete Folder # Delete light Utils if empty # Delete Shaders
self