Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
364 B
3
Indexable
Never
##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')