ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
geometryAttrInfo [-boundingBox] [-castToEdges] [-castToFaces] [-castToVerts] [-componentTagCategory] [-componentTagExpression string] [-componentTagHash] [-componentTagHistory] [-componentTagHistoryHash] [-componentTagNames] [-components] [-deformerChain] [-elementCount] [-groupId int] [-matrix] [-nodeChain] [-originalGeometry] [-outputPlugChain] [-plugChain] [-pointCount] [-pointIndices] [-points] [-subsetState]
attribute
geometryAttrInfo は、取り消し可能、照会不可能、および編集不可能です。
このコマンドは、アトリビュート内のジオメトリに関する情報を提供します。したがって、このコマンドはジオメトリを含むアトリビュートにのみ作用します。頂点の数、バウンディング ボックス、存在する componentTags など、さまざまなタイプの情報をリクエストできます。 リクエストは、ジオメトリのサブセットに対して行うことができます。ジオメトリのサブセットは、特定のグループ ID または componentTag エクスプレッションによって限定されます。たとえば、componentTag エクスプレッションを使用している場合は、リクエストされたインデックスを使用して、このエクスプレッションで定義されたサブセットが照合されます。| Any | アトリビュート内のジオメトリに関する情報です。返される値の数および型は、情報リクエストによって決まります。 |
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
-boundingBox(-bb)
|
|
|
||
|
||||
-castToEdges(-cte)
|
|
|
||
|
||||
-castToFaces(-ctf)
|
|
|
||
|
||||
-castToVerts(-ctv)
|
|
|
||
|
||||
-componentTagCategory(-ccy)
|
|
|
||
|
||||
-componentTagExpression(-cex)
|
string
|
|
||
|
||||
-componentTagHash(-hsh)
|
|
|
||
|
||||
-componentTagHistory(-cth)
|
|
|
||
|
||||
-componentTagHistoryHash(-chh)
|
|
|
||
|
||||
-componentTagNames(-cnm)
|
|
|
||
|
||||
-components(-cmp)
|
|
|
||
|
||||
-deformerChain(-dch)
|
|
|
||
|
||||
-elementCount(-ec)
|
|
|
||
|
||||
-groupId(-gid)
|
int
|
|
||
|
||||
-matrix(-mtx)
|
|
|
||
|
||||
-nodeChain(-nch)
|
|
|
||
|
||||
-originalGeometry(-og)
|
|
|
||
|
||||
-outputPlugChain(-och)
|
|
|
||
|
||||
-plugChain(-pch)
|
|
|
||
|
||||
-pointCount(-pc)
|
|
|
||
|
||||
-pointIndices(-pi)
|
|
|
||
|
||||
-points(-pnt)
|
|
|
||
|
||||
-subsetState(-sbs)
|
|
|
||
|
||||
polyCylinder -r 1 -h 6 -sx 4 -sy 5 -sz 1 -name myGeo;
select myGeo.vtx[12:23] myGeo.vtx[25];
string $clusterList[]=`cluster`;
move -absolute 1.0 0 0 $clusterList[1];
// Find the groupId for the cluster node to test our queries
int $gid = `getAttr ($clusterList[0] + ".input[0].groupId")`;
// Get the number of points
int $n0 = `geometryAttrInfo -pc myGeo.outMesh`;
int $n1 = `geometryAttrInfo -pc -gid $gid myGeo.outMesh`;
print ("Deforming " + $n1 + " out of " + $n0 + " points\n");
// Deforming 13 out of 26 points
// Get the indices that are being deformed
geometryAttrInfo -pi -gid $gid myGeo.outMesh;
// Result: 12 13 14 15 16 17 18 19 20 21 22 23 25 //
// Get the components that are being deformed
geometryAttrInfo -cmp -gid $gid myGeo.outMesh;
// Result: vtx[12:23] vtx[25] //
// Get the bounding box of the total geometry
geometryAttrInfo -bb myGeo.outMesh;
// Result: -1 2 -3 3 -1 1 //
// Get the bounding box of what is being deformed
geometryAttrInfo -bb -gid $gid myGeo.outMesh;
// Result: 0 2 0.6 3 -1 1 //
// Get the node chain leading up to the cluster
geometryAttrInfo -nch cluster1.outputGeometry[0];
// Result: polyCylinder1 myGeoShapeOrig groupParts2 tweak1 cluster1GroupParts cluster1 //
// Get the deformer chain leading up to the cluster
geometryAttrInfo -dch cluster1.outputGeometry[0];
// Result: tweak1 cluster1 //
// Get the plug chain leading up to the cluster
geometryAttrInfo -pch cluster1.outputGeometry[0];
// Result: polyCylinder1.output myGeoShapeOrig.inMesh myGeoShapeOrig.worldMesh[0] groupParts2.inputGeometry groupParts2.outputGeometry tweak1.input[0].inputGeometry tweak1.outputGeometry[0] cluster1GroupParts.inputGeometry cluster1GroupParts.outputGeometry cluster1.input[0].inputGeometry cluster1.outputGeometry[0] //
// Get the output plug chain leading up to the cluster
geometryAttrInfo -och cluster1.outputGeometry[0];
// Result: polyCylinder1.output myGeoShapeOrig.worldMesh[0] groupParts2.outputGeometry tweak1.outputGeometry[0] cluster1GroupParts.outputGeometry cluster1.outputGeometry[0] //