def getAllControls(self, ns=None):
        """
        SYNOPSIS
         searches and tries to find set called 'allControls'
         and selects it

        INPUTS:	* = optional
            (string)	ns*:	optional namespace

        RETURNS: (string)	name of allControls set
        """

        allControls = None
        setName = 'allControls'
        if ns:
            setName = '%s:%s' % (ns, setName)

        if objExists(setName):
            allControls = setName
        else:
            for oSet in ls(type='objectSet'):
                if re.search(setName, oSet):
                    allControls = oSet

        if objExists(allControls):
            select(allControls)
        else:
            self.logger.warning("%s set doesn't exists in scene." % setName)

        return allControls
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/mayaCore.py/MayaSceneCore.getAllControls/original