//首先选取作为目的地的那个mesh物体(其顶点将作为创建新物体的依据),然后Shift选择一个希望
//放置在这些顶点上的物体,将下面代码拷贝到script editor中,执行
global proc nwGetVertex(string $polySelection, string $pixieSelection) {
int $i = 0;
select -r $polySelection;
int $pVC[] = `polyEvaluate -vertex`;
int $polyVertexCount = $pVC[0];
float $polyVertexPos[3] = {0,0,0};
string $currentVertex = "";
for ($i = 0; $i < $polyVertexCount; $i++) {
$currentVertex = $polySelection + ".vtx[" + $i + "]";
$polyVertexPos = `pointPosition -w $currentVertex`;
select -r $pixieSelection;
duplicate -rr;
move -a -ws $polyVertexPos[0] $polyVertexPos[1] $polyVertexPos[2];
}
}
string $currentSelection[] = `ls -sl`;
nwGetVertex($currentSelection[0],$currentSelection[1]);