Example #1
0
def copyVertPos():
    '''
    Select verts, shift-select target to copy to, run
    '''
    srcVerts = mc.ls(os=True, fl=True)[:-1]
    target = mc.ls(os=True)[-1]
    dt.copyVertPos(srcVerts, target)
Example #2
0
def copyVertPos():
    '''
    Select verts, shift-select target to copy to, run
    '''
    srcVerts = mc.ls(os=True, fl=True)[:-1]
    target = mc.ls(os=True)[-1]
    dt.copyVertPos(srcVerts, target)
Example #3
0
def copyVertPosFrom():
    '''
    Select verts on target mesh, shift-select source mesh
    '''
    destVerts = mc.ls(os=True, fl=True)[:-1]
    source = mc.ls(os=True)[-1]
    target = dt.getMeshName(destVerts[0])
    srcVerts = [vtxName.replace(target, source) for vtxName in destVerts]
    dt.copyVertPos(srcVerts, target)
Example #4
0
def copyVertPosFrom():
    '''
    Select verts on target mesh, shift-select source mesh
    '''
    destVerts = mc.ls(os=True, fl=True)[:-1]
    source = mc.ls(os=True)[-1]
    target = dt.getMeshName(destVerts[0])
    srcVerts = [vtxName.replace(target, source) for vtxName in destVerts]
    dt.copyVertPos(srcVerts, target)