ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. MEL 例.

概要

copySkinWeights [-destinationSkin string] [-influenceAssociation string] [-mirrorInverse] [-mirrorMode string] [-noBlendWeight] [-noMirror] [-normalize] [-sampleSpace uint] [-smooth] [-sourceSkin string] [-surfaceAssociation string] [-uvSpace string string]

copySkinWeights は、取り消し可能、照会可能、および編集可能です。

skinCluster ウェイトを XYZ 軸の 1 軸の反対側にコピーまたはミラーするコマンドです。このコマンドを使用して、サーフェスから別のサーフェスへ、または同じサーフェス内で、ウェイトをミラーすることができます。

戻り値

なし

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

キーワード

skinCluster, duplicate, mirror

関連

skinCluster, skinPercent

フラグ

destinationSkin, influenceAssociation, mirrorInverse, mirrorMode, noBlendWeight, noMirror, normalize, sampleSpace, smooth, sourceSkin, surfaceAssociation, uvSpace
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-sourceSkin(-ss) string createqueryedit
ソースのスキン シェイプを指定します。
-destinationSkin(-ds) string createqueryedit
目的のスキン シェイプを指定します。
-normalize(-nr) createqueryedit
スキン ウェイトを正規化します。
-noMirror(-nm) createqueryedit
ミラー フラグを使用しない場合、ウェイトはミラーされずにコピーされます。
-mirrorInverse(-mi) createqueryedit
値は正領域から負領域へミラーされます。このフラグを使用すると、方向が反転します。
-smooth(-sm) createqueryedit
スムーズフラグを使用するとウェイトは、最近接の 1 つの頂点から割り当てられる代わりに、最近接の頂点間で滑らかに補間されます。
-mirrorMode(-mm) string createqueryedit
mirrorMode フラグは、ミラー フラグを使用した場合のミラーリングのプレーン(XY、YZ、XZ のいずれか)を定義します。既定のプレーンは XY です。
-surfaceAssociation(-sa) string createqueryedit
surfaceAssociation フラグは、ウェイトがサーフェス間で転送される方法、「closestPoint」、「rayCast」、または「closestComponent」を制御します。既定は closestComponent です。
-influenceAssociation(-ia) string createqueryeditmultiuse
influenceAssociation フラグは、ソース スキンとターゲット スキンへのインフルエンスを一致させる方法を制御します。フラグを複数回含めて、すべてのインフルエンスが一致するまで複数の関連付けスキームを順番に起動できます。サポートされている値は、「closestJoint」、「closestBone」、「label」、「name」、「oneToOne」です。既定は closestJoint です。
-sampleSpace(-spa) uint createqueryedit
アトリビュートの転送を実行する空間を選択します。0 はワールド空間、1 はモデル空間です。既定はワールド空間です。
-uvSpace(-uv) string string createqueryedit
uvSpace フラグはウェイトの転送が、指定したソース UV セットと目標 UV セットに基づいて UV 空間で実施されることを示します。
-noBlendWeight(-nbw) createqueryedit
no blend フラグを使用すると、スキン クラスタのブレンド ウェイトはターゲットにコピーされません。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

MEL 例

// Create plane and a skeleton. Bind the skin.
//
file -f -new;
polyPlane -w 10 -h 10 -sx 5 -sy 5 -ax 0 1 0 -ch 1;
select -d pPlane1 ;
select -d;
joint -p 0 0 -6 ;
joint -p 0 0 -4 ; joint -e -zso -oj xyz joint1;
joint -p 2 0 -4 ; joint -e -zso -oj xyz joint2;
joint -p 5 0 -3 ; joint -e -zso -oj xyz joint3;
select -r joint2;
joint -p -2 0 -4 ; joint -e -zso -oj xyz joint2;
joint -p -5 0 -3 ; joint -e -zso -oj xyz joint5;
select -r joint2;
joint -p 0 0 3 ; joint -e -zso -oj xyz joint2;
joint -p 5 0 5 ; joint -e -zso -oj xyz joint7;
select -r joint7;
joint -p -5 0 5 ; joint -e -zso -oj xyz joint7;
select -r joint1 pPlane1 ;
createSkinCluster "-mi 5 -dr 4";
// Modify some weights on the -x side of the character
//
skinPercent -tv joint2  0.200000 skinCluster1 pPlane1.vtx[30];
skinPercent -tv joint2  0.200000 skinCluster1 pPlane1.vtx[31];
skinPercent -tv joint5  0.550000 skinCluster1 pPlane1.vtx[24];
skinPercent -tv joint5  0.550000 skinCluster1 pPlane1.vtx[25];
// Mirror the skin weights to the other side of the character
// Mirror inverse is chosen since we want to go from -x to +x, not +x to -x.
//
copySkinWeights -ss skinCluster1 -ds skinCluster1 -mirrorMode YZ -mirrorInverse;
// Now create a second plane and bind it as skin
//
polyPlane -w 10 -h 10 -sx 5 -sy 5 -ax 0 1 0 -tx 1 -ch 1;
select -r joint1 pPlane2 ;
createSkinCluster "-mi 5 -dr 4";
// Copy the skin weights from the first plane onto the new plane.
// The -noMirror flag is used since we want to copy directly, not mirror.
//
copySkinWeights -ss skinCluster1 -ds skinCluster2 -noMirror;