Untitled

 avatar
unknown
plain_text
4 years ago
364 B
5
Indexable
##This script is usefull for resnapping moved points to neutral shape - while making Bshapes

import pymel.core as pm

neutralShape = 'NEUTRALShape'
pts = [i for i in pm.selected(fl = True)]
for p in pts:
    index = p.index()
    nPt = pm.PyNode(neutralShape + '.vtx[' + str(index) + ']')
    p.setPosition(nPt.getPosition(space='world'),space='world')