2010-12-12 69 views

回答

1

使用AttrFieldSliderGrp命令可以翻譯頂點:

window -title "Sliders for moving a vertex"; 
    polySphere; 
    string $sphere[] = `select -r pSphere1.vtx[199]`; 
    columnLayout; 
    attrFieldSliderGrp -min -5.0 -max 5.0 -at ($sphere[0]+".pntx"); 
    attrFieldSliderGrp -min -5.0 -max 5.0 -at ($sphere[0]+".pnty"); 
    attrFieldSliderGrp -min -5.0 -max 5.0 -at ($sphere[0]+".pntz"); 
showWindow; 

enter image description here

但你不能轉換邊緣,因爲沒有txty併爲他們tz屬性與AttrFieldSliderGrp命令面孔。 儘管如此,也有和polyMoveEdgepolyMoveFacetcmds.polyMoveEdge()cmds.polyMoveFacet()),用於經由MEL和Python移動邊和麪命令:

polySphere -name myEdges; 
select myEdges.e[199]; 
polyMoveEdge -t 2.0 1.0 0.7 myEdges.e[199]; 

polySphere -name myFaces; 
select myFaces.f[200:201]; 
polyMoveFacet -t 1.8 0.8 1.1 myFaces.f[200:201];