Created
June 15, 2015 06:32
-
-
Save taikomatsu/a57407ddbae0c48f1d4a to your computer and use it in GitHub Desktop.
Make particles from selected mesh vertices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make particles from selected mesh vertices | |
from pymel.core import * | |
vtxs = [PyNode(o) for o in filterExpand('%s.vtx[*]' % selected()[0].name(), sm=31)] | |
points = [] | |
for o in vtxs: | |
points.append(o.getPosition()) | |
particle(p=points, c=1) | |
print('# done') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment