ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. MEL 例.
polyUVSet [-allUVSets] [-allUVSetsIndices] [-allUVSetsWithCount] [-copy] [-create] [-currentLastUVSet] [-currentPerInstanceUVSet] [-currentUVSet] [-delete] [-newUVSet string] [-perInstance boolean] [-projections] [-rename] [-shareInstances] [-unshared] [-uvSet string]
polyUVSet は、取り消し可能、照会可能、および編集可能です。
UV セットを次のように操作します。- 既存の UV セットを削除 - 既存の UV セットの名前を変更- 新しい空の UV セットを作成- UV セットの値を既存の UV セットにコピー- 現在の UV セットを既存の UV セットに設定- インスタンス間での、インスタンス単位の UV セットの共有を修正 - 現在の UV セットを照会- 現在の UV セットを、オブジェクトに最後に追加した UV セットに設定- すべての UV セットの名前を照会| boolean | 成功または失敗 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
-uvSet(-uvs)
|
string
|
|
||
|
||||
-currentUVSet(-cuv)
|
|
|
||
|
||||
-currentLastUVSet(-luv)
|
|
|
||
|
||||
-allUVSets(-auv)
|
|
|
||
|
||||
-allUVSetsIndices(-uvn)
|
|
|
||
|
||||
-allUVSetsWithCount(-awc)
|
|
|
||
|
||||
-rename(-rn)
|
|
|
||
|
||||
-newUVSet(-nuv)
|
string
|
|
||
|
||||
-delete(-d)
|
|
|
||
|
||||
-copy(-cp)
|
|
|
||
|
||||
-create(-cr)
|
|
|
||
|
||||
-projections(-pr)
|
|
|
||
|
||||
-perInstance(-pi)
|
boolean
|
|
||
|
||||
-unshared(-us)
|
|
|
||
|
||||
-shareInstances(-si)
|
|
|
||
|
||||
-currentPerInstanceUVSet(-cpi)
|
|
|
||
|
||||
// To set the current uv set to be "map2".
polyUVSet -currentUVSet -uvSet "map2";
// To set the current uv set to the last uv set added to an object.
polyUVSet -currentLastUVSet;
// To query the current uv set.
polyUVSet -q -currentUVSet;
// To rename a currently existing uv set from "map3" to "map4".
polyUVSet -rename -uvSet "map3" -newUVSet "map4";
// Rename the current uv set (if any) to "map4".
polyUVSet -rename -newUVSet "map4";
// To delete a currently existing uv set "map3".
polyUVSet -delete -uvSet "map3";
// To delete the current uv set (if any)
polyUVSet -delete;
// Copy values of uvset "map1" to "map2"
polyUVSet -copy -uvSet "map1" -nuv "map2";
// Copy values of the current uvset to "map2"
polyUVSet -copy -nuv "map2";
// Make a copy of "map1" to a new uvset. The
// name of which is automatically generated and returned.
polyUVSet -copy -uvSet "map1";
// Create a new empty uv set
polyUVSet -create -uvSet "newMap";
// Create a new empty uv set with a generate new name
// The newly generated name is returned.
polyUVSet -create;
// To query all of the uv sets
polyUVSet -q -allUVSets;
// To query the logical indices of the uv sets in the
// node's uv set array
string $node = "plg";
int $indices[] = `polyUVSet -q -allUVSetsIndices $node`;
for( $i in $indices )
{
string $name = `getAttr ($node+".uvSet["+$i+"].uvSetName")`;
print( "Found uv set called " + $name + "\n" );
}
// To create a new per-instance uv set named "myMap"
polyUVSet -create -perInstance 1 -uvSet myMap;