标签:
xform -q -worldSpace -t "pCylinderShape1.vtx[0]"
xform -objectSpace -t $x $y $z "pCylinderShape1.vtx[0]"
// query the number of facespolyEvaluate -f;// Result: 16// query the number of trianglespolyEvaluate -t;// Result: 32// query the number of selected facespolyEvaluate -faceComponent;// Result: 2// query the number of vertices and facespolyEvaluate -v -f;// Result: 25 16// formatted query of the number of vertices and facespolyEvaluate -v -f -fmt;// Result: vertex=25 face=16
// List all connections to BALLstring $list[] = `listConnections BALL`;// List only incoming connections from BALL.txlistConnections -d off -s on BALL.tx;// List connections from BALL to nodes of type ‘transform‘listConnections -t transform;// List connections on BALL, ignoring unit conversion nodeslistConnections -scn on BALL;
// Connect the translation of two nodes togetherconnectAttr firstGuy.t secondGuy.translate;// Connect the rotation of one node to the override colour// of a second node.connectAttr firstGuy.rotate secondGuy.overrideColor;// Break the connection between the rotate attributes.//disconnectAttr ($sph[0] + ".r") ($con[0] + ".r");
$shapes = `listRelatives -shapes pCylinder1`;// List the name of the shape below the transform node.// (The result of the command is shown)string $shapes[] = `listRelatives -s -path "nexus"`;// Result: nexus|nexusShape //
clearParticleStartState $ptclShape; // 把粒子的初始状态设为空,也就是清除所有粒子emit -object $ptclShape -pos $x $y $z; // 往粒子系统添加粒子saveInitialState $ptclShape; // 把当前状态设置为初始状态
标签:
原文地址:http://www.cnblogs.com/dydx/p/4378203.html