NURBSSelection は、シーン NURBS ノードに対する NURBS サブオブジェクトのセットを仮想配列で表します。インデックスでサブオブジェクトにアクセスしたり、サブオブジェクトを反復したり、マップした関数をサブオブジェクトに適用したりできます。NURBSSelection 配列はダイナミックです (NURBS ノードのサブオブジェクトが変更されると内容が変化します)。NURBSSelection の値はマップ可能です。
コンストラクタ
<node>.selectedCurveCVs
<node>.selectedCurves
<node>.selectedImports
<node>.selectedPoints
<node>.selectedSurfaces
<node>.selectedSurfCVs
<node>.curveCVs -- read-only
<node>.curves -- read-only
<node>.imports -- read-only
<node>.surfaces -- read-only
<node>.surfCVs -- read-only
<node>.points -- read-only
プロパティ
<nurbsselection>.count: Integer, read-only
NURBSSelection 配列内のサブオブジェクト数を返します。
<nurbsselection>.selSetNames: Array of names, read-only
NURBSSelection が関連付けられているオブジェクトに関する、NURBSSelection レベルに対応する現在の名前付き選択セットの名前の配列を返します。
次のプロパティは、単独の選択項目 ($foo.curveCVs[n]の形式) で使われます。
<nurbsselection>.index: Integer, read-only
NURBS オブジェクト内で選択されているサブオブジェクトのインデックスを返します。
例
$foo.selectedcurveCVs[2].index
この場合は、現在の選択項目で 2 番目のカーブ CV のカーブ CV インデックスが返されます。
sCVs = for i in $foo.selectedcurveCVs collect i.index
sCV は、選択されたカーブ CV を配列として含みます。
演算子
<node>.selectedCurveCVs = (<array> | <bitarray>)
<node>.selectedCurves = (<array> | <bitarray>)
<node>.selectedImports = (<array> | <bitarray>)
<node>.selectedPoints = (<array> | <bitarray>)
<node>.selectedSurfaces = (<array> | <bitarray>)
<node>.selectedSurfCVs = (<array> | <bitarray>)
指定されたサブオブジェクトを選択します。
<nurbsselection> [<integer>]
インデックスで指定されたサブオブジェクトを、単独の NURBSSelection として取得します。インデックスは 1 から始まります。
<nurbsselection> [(<integer_array> | <bitarray>)]
インデックスで指定されたサブオブジェクトを、NURBSSelection として取得します。インデックスは 1 から始まります。
<nurbsselection> [(<#name> | <string>)]
サブオブジェクト レベルの名前付き選択セットを取得します。名前付き選択セットの名前は、名前または文字列値として指定できます。
<nurbsselection> [(<#name> | <string>)] = (<nurbsselection> | <integer_array> | <bitarray>)
サブオブジェクト レベルの名前付き選択セットを指定されたエッジに設定します。名前付き選択セットの名前は、名前または文字列値として指定できます。また、エッジは、配列、bitArray、または同じオブジェクトの同じサブオブジェクト レベルの NURBSSelection として指定できます。
メソッド
move <nurbsselection> <point3>
NURBSSelection のサブオブジェクトを移動します。
rotate <nurbsselection> <quat_or_other_rotation_form>
NURBSSelection のサブオブジェクトを回転します。
scale <nurbsselection> <point3>
NURBSSelection のサブオブジェクトをスケールします。
select <nurbsselection>
NURBSSelection のサブオブジェクトを選択します。
deselect <nurbsselection>
NURBSSelection のサブオブジェクトを選択解除します。
delete <nurbsselection>
NURBSSelection のサブオブジェクトを削除します。
append <nurbsselection> (<nurbsselection> | <integer>)
NURBSSelection にサブオブジェクトを付加します。
findItem <nurbsselection> (<nurbsselection[<integer>] | <integer>)
一致する項目がある場合は選択インデックス、ない場合は 0 (ゼロ)を返します。項目は選択インデックスまたは単独の NURBSSelection です。
例:
$foo.surfCVs[#baz] -- retrieves the surf CV selection named baz move $foo.curves[#bar] [0,0,10] -- moves the "bar" curve selection 10 in Z move $foo.selectedSurfCVs [0,0,10] -- moves the current surface CV selection 10 in Z coordsys local scale $foo.surfaces [#baz] [2,2,2] select $foo.curveCVs[#(1,2,3,4,5)] -- select the specified curve CVs deselect $foo.curves-- deselect all curves delete $foo.points[#{1..31, 40..50}] -- delete the specified points $foo.curveCVs[#fred] = $foo.selectedCurveCVs -- "snapshot" the selected curve CVs