Untitled
unknown
plain_text
4 years ago
364 B
13
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')
Editor is loading...