Untitled
Anonymous
plain_text
08/12/2021 9:41 AM
488 B
21
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...