Tweak data stored in mesh shape node

// create a unit plane mesh
polyPlane -sw 1 -sh 1 -w 1 -h 1;
// move the 1st vertex to (0,1,0)
move -r 0 1 0 pPlane1.vtx[0];
// world position of the 1st vertex: (-0.5,1,0.5)
pointPosition pPlane1.pnts[0];
// tweak vector of the 1st vertex: (0,1,0)
getAttr pPlane1.pnts[0];
// reset the tweak vector of the 1st vertex
setAttr pPlane1.pnts[0] 0 0 0;

답글 남기기