ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. Python 例.
geomBind([bindMethod=uint], [falloff=float], [geodesicVoxelParams=[uint, boolean]], [maxInfluences=int])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
geomBind は、取り消し可能、照会可能、および編集可能です。
このコマンドは、測地線ボクセル バインド アルゴリズムを使用するウェイトの計算に使用されます。これは既存の skinCluster ノードに正しいウェイト値を設定することによって動作します。 このコマンドでは GPU アクセラレーションが使用されるため、Maya のヘッドレス バージョン(バッチ モード)ではサポートされません。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
bindMethod(bm)
|
uint
|
|
||
|
||||
falloff(fo)
|
float
|
|
||
|
||||
geodesicVoxelParams(gvp)
|
[uint, boolean]
|
|
||
|
||||
maxInfluences(mi)
|
int
|
|
||
|
||||
import maya.cmds as cmds # Compute geodesic voxel weights for skinCluster1 and skinCluster2. This # command will create a geomBind node connected to the two skinClusters # and their common bind pose. The geomBind node will maintain the # geodesic voxel binding parameters used (ie: falloff, resolution, etc.) # cmds.select( 'skinCluster1', r=True ) cmds.select( 'skinCluster2', add=True ) cmds.geomBind( bm=3, fo=0, mi=5 ) # Create a simple scene that use geodesic voxel weights for skin binding. cmds.file( f=True, new=True ) cmds.polyCylinder( r=1, h=10, sx=20, sy=20, sz=5 ) cmds.select( d=True ) cmds.joint( p=[0, -4, 0] ) cmds.joint( p=[0, 0, 0] ) cmds.joint( p=[0, 4, 0] ) cmds.select( 'joint1', 'joint2', 'joint3', 'pCylinder1' ) cmds.skinCluster( bindMethod=3 ) cmds.geomBind( 'skinCluster1', bindMethod=3 )