def polyMergePlus(self):
        """
        SYNOPSIS: Merge utility - Preserves pivot, name, and layer from first in selection
        INPUTS: none
        RETURNS: none
        """
        if selected():
            if len(selected()) > 1:
                if self.verifyMeshSelection(1):
                    oSelection = selected()
                    nName = selected()[0].name()
                    nPiv = xform(selected()[0].name(), q=1, a=1, ws=1, rp=1)
                    dLayer = self.getDisplayLayer(selected()[0])
                    nParent = ''
                    if selected()[0].getParent():
                        nParent = selected()[0].getParent()
                    select(oSelection, r=1)
                    cResult = PyNode(polyUnite(ch=0)[0])  #@UndefinedVariable
                    cResult.rename(nName)
                    # Re-set pivot of new object
                    cResult.setPivots(nPiv)
                    select(cResult, r=1)
                    if dLayer:
                        editDisplayLayerMembers(dLayer.name(), cResult.name())
                    if nParent:
                        cResult.setParent(nParent)
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/mayaCore.py/MayaMeshCore.polyMergePlus/original