ジャンプ先: 概要. 戻り値. フラグ. Python 例.

概要

scriptCtx( string , [allComponents=boolean], [allObjects=boolean], [animBreakdown=boolean], [animCurve=boolean], [animInTangent=boolean], [animKeyframe=boolean], [animOutTangent=boolean], [baseClassName=string], [camera=boolean], [cluster=boolean], [collisionModel=boolean], [controlVertex=boolean], [cumulativeLists=boolean], [curve=boolean], [curveKnot=boolean], [curveOnSurface=boolean], [curveParameterPoint=boolean], [dimension=boolean], [dynamicConstraint=boolean], [edge=boolean], [editPoint=boolean], [emitter=boolean], [enableRootSelection=boolean], [escToQuit=boolean], [exists=boolean], [exitUponCompletion=boolean], [expandSelectionList=boolean], [facet=boolean], [field=boolean], [finalCommandScript=script], [fluid=boolean], [follicle=boolean], [forceAddSelect=boolean], [hairSystem=boolean], [handle=boolean], [history=boolean], [hull=boolean], [ignoreInvalidItems=boolean], [ikEndEffector=boolean], [ikHandle=boolean], [image1=string], [image2=string], [image3=string], [imagePlane=boolean], [implicitGeometry=boolean], [isoparm=boolean], [joint=boolean], [jointPivot=boolean], [lastAutoComplete=boolean], [lattice=boolean], [latticePoint=boolean], [light=boolean], [localRotationAxis=boolean], [locator=boolean], [locatorUV=boolean], [locatorXYZ=boolean], [nCloth=boolean], [nParticle=boolean], [nParticleShape=boolean], [nRigid=boolean], [name=string], [nonlinear=boolean], [nurbsCurve=boolean], [nurbsSurface=boolean], [objectComponent=boolean], [orientationLocator=boolean], [particle=boolean], [particleShape=boolean], [plane=boolean], [polymesh=boolean], [polymeshEdge=boolean], [polymeshFace=boolean], [polymeshFreeEdge=boolean], [polymeshUV=boolean], [polymeshVertex=boolean], [polymeshVtxFace=boolean], [rigidBody=boolean], [rigidConstraint=boolean], [rotatePivot=boolean], [scalePivot=boolean], [sculpt=boolean], [selectHandle=boolean], [setAllowExcessCount=boolean], [setAutoComplete=boolean], [setAutoToggleSelection=boolean], [setDoneSelectionPrompt=string], [setNoSelectionHeadsUp=string], [setNoSelectionPrompt=string], [setSelectionCount=int], [setSelectionHeadsUp=string], [setSelectionPrompt=string], [showManipulators=boolean], [spring=boolean], [springComponent=boolean], [stroke=boolean], [subdiv=boolean], [subdivMeshEdge=boolean], [subdivMeshFace=boolean], [subdivMeshPoint=boolean], [subdivMeshUV=boolean], [surfaceEdge=boolean], [surfaceFace=boolean], [surfaceKnot=boolean], [surfaceParameterPoint=boolean], [surfaceRange=boolean], [surfaceUV=boolean], [texture=boolean], [title=string], [toolCursorType=string], [toolFinish=script], [toolStart=script], [totalSelectionSets=int], [vertex=boolean])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

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

このコマンドを使用すると、ユーザはセレクション ツールに基づいて独自のツールを作成することができます。多数のセレクション リストを収集する、選択項目の動作やセレクション マスクは完全にカスタマイズできるなどが可能です。

このコマンドは、実行前に処理されます。キーワード「$Selection#」(# は 1 以上の数字)には、セレクション セットを指定します。コンテキストには、$Selection# キーワードの代わりに置き換えられる複数のセレクション セットを MEL 文字配列の形式で指定することができます。セットごとに固有の項目をセットに指定する場合は、各セットで指定する必要があります。下記の例を参照してください。

さらに、作成するセレクションのタイプを指定するために、「selectType」コマンドのセレクション タイプ フラグをここで使用することができます。

戻り値

stringコンテキスト名

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

フラグ

allComponents, allObjects, animBreakdown, animCurve, animInTangent, animKeyframe, animOutTangent, baseClassName, camera, cluster, collisionModel, controlVertex, cumulativeLists, curve, curveKnot, curveOnSurface, curveParameterPoint, dimension, dynamicConstraint, edge, editPoint, emitter, enableRootSelection, escToQuit, exists, exitUponCompletion, expandSelectionList, facet, field, finalCommandScript, fluid, follicle, forceAddSelect, hairSystem, handle, history, hull, ignoreInvalidItems, ikEndEffector, ikHandle, image1, image2, image3, imagePlane, implicitGeometry, isoparm, joint, jointPivot, lastAutoComplete, lattice, latticePoint, light, localRotationAxis, locator, locatorUV, locatorXYZ, nCloth, nParticle, nParticleShape, nRigid, name, nonlinear, nurbsCurve, nurbsSurface, objectComponent, orientationLocator, particle, particleShape, plane, polymesh, polymeshEdge, polymeshFace, polymeshFreeEdge, polymeshUV, polymeshVertex, polymeshVtxFace, rigidBody, rigidConstraint, rotatePivot, scalePivot, sculpt, selectHandle, setAllowExcessCount, setAutoComplete, setAutoToggleSelection, setDoneSelectionPrompt, setNoSelectionHeadsUp, setNoSelectionPrompt, setSelectionCount, setSelectionHeadsUp, setSelectionPrompt, showManipulators, spring, springComponent, stroke, subdiv, subdivMeshEdge, subdivMeshFace, subdivMeshPoint, subdivMeshUV, surfaceEdge, surfaceFace, surfaceKnot, surfaceParameterPoint, surfaceRange, surfaceUV, texture, title, toolCursorType, toolFinish, toolStart, totalSelectionSets, vertex
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
allComponents(alc) boolean createquerymultiuse
すべてのコンポーネントのセレクション マスクのオン/オフを設定します。
allObjects(alo) boolean createquerymultiuse
すべてのオブジェクトのセレクション マスクのオン/オフを。
animBreakdown(abd) boolean createquerymultiuse
アニメーションのブレイクダウンのセレクション マスクのオン/オフを設定します。
animCurve(ac) boolean createquerymultiuse
アニメーション カーブのセレクション マスクのオン/オフを設定します。
animInTangent(ait) boolean createquerymultiuse
アニメーションのイン接線のセレクション マスクのオン/オフを設定します。
animKeyframe(ak) boolean createquerymultiuse
アニメーションのキーフレームのセレクション マスクのオン/オフを設定します。
animOutTangent(aot) boolean createquerymultiuse
アニメーションのアウト接線のセレクション マスクのオン/オフを設定します。
baseClassName(bcn) string createqueryedit
この文字列を使用して、ツールのプロパティ シートの関数名を生成します。たとえば「myScriptTool」が指定されている場合、プロパティ シートには関数「myScriptToolValues」と「myScriptToolProperties」が使用されます。既定は「scriptTool」です。
camera(ca) boolean createquerymultiuse
カメラのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
cluster(cl) boolean createquerymultiuse
クラスタのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
collisionModel(clm) boolean createquerymultiuse
衝突モデルのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
controlVertex(cv) boolean createquerymultiuse
コントロール頂点(CV)のセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
cumulativeLists(cls) boolean createqueryedit
設定されている場合、セレクション リストは累積的です。たとえば、2 番目のリストには最初のリストの項目がすべて含まれ、3 番目のリストには 2 番目のリストの項目がすべて含まれるようになります。上記のフラグで指定したスクリプトにこの点が考慮されていることを確認してください。2 つ以上のセレクション セットがある場合に問題となります。
curve(c) boolean createquerymultiuse
カーブのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
curveKnot(ck) boolean createquerymultiuse
カーブ ノットのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
curveOnSurface(cos) boolean createquerymultiuse
カーブ オンサーフェスのオン/オフを設定します(オブジェクト フラグ)。
curveParameterPoint(cpp) boolean createquerymultiuse
カーブのパラメータ ポイントのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
dimension(dim) boolean createquerymultiuse
ディメンションシェイプのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
dynamicConstraint(dc) boolean createquerymultiuse
dynamicConstraint のセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
edge(eg) boolean createquerymultiuse
メッシュ エッジのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
editPoint(ep) boolean createquerymultiuse
エディット ポイントのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
emitter(em) boolean createquerymultiuse
エミッタのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
enableRootSelection(ers) boolean createqueryedit
設定されている場合、ルートのトランスフォーム レベルにある項目を選択できます。既定は false です。
escToQuit(esc) boolean createqueryedit
true に設定されている場合、[Esc]を押すとツールが終了します。既定は false です。
exists(ex) boolean create
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
exitUponCompletion(euc) boolean createqueryedit
設定されている場合、最後のセレクション セットを完了するとツールが終了します。既定は true です。
expandSelectionList(esl) boolean createqueryedit
設定されている場合、項目ごとに 1 つのコンポーネントを含むようにセレクション リストが展開されます。既定ではこのように設定します。そうでない場合、同一サーフェス上の 2 つのアイソパラムが 1 つの項目として表示されます。

同じオブジェクト上のコンポーネントが選択された順序で返されるようにするには selectPref -trackSelectionOrder on コマンドを -toolStart スクリプトで使用して順序付きの選択を有効にし-toolFinish script.

facet(fc) boolean createquerymultiuse
メッシュ フェースのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
field(fi) boolean createquerymultiuse
フィールドのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
finalCommandScript(fcs) script createqueryedit
ユーザが Enter キーを押し、コンテキストが完了したときに実行するスクリプトを指定します。保有しているセレクション セットの数に応じて、スクリプトで変数文字列 $Selection1[]、$Selection2[], ... を使用できます。
fluid(fl) boolean createquerymultiuse
流体のセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
follicle(fo) boolean createquerymultiuse
毛根のセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
forceAddSelect(fas) boolean createqueryedit
true に設定されている場合、最初のセレクション セットで -setAutoToggleSelection (下記を参照)とともに使用すると、モディファイア キーが押されない限り、前の結果の計算後に最初に行う選択が「Shift」キーによる選択になります。既定は false です。

各セレクション セットのためのフラグです。これらのフラグは多目的に使用されます。

hairSystem(hs) boolean createquerymultiuse
hairSystem のセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
handle(ha) boolean createquerymultiuse
オブジェクト ハンドルのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
history(ch) boolean create
ツール コマンドの場合、対象となるツールのコンストラクション ヒストリをオンにします。
hull(hl) boolean createquerymultiuse
ハルのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
ignoreInvalidItems(iii) boolean createqueryedit
複数のセレクション セットがある場合、「セレクション セットを完了」した時点でセレクション セットの状態が記録されます。その際に、そのリスト内のいくつかの項目を削除し、1 つまたは複数のセレクション セット内の項目を無効にできます。このフラグが設定されている場合、それらの無効な項目は検出されますが無視されます。これが発生したことを知ることはできません。これは、あたかも無効な項目が最初の場所では選択されないようなものです(ただし、セレクション セット内には必要なだけの項目が含まれていないことになります)。このフラグが設定されていない場合、警告メッセージが表示され、エラー状態が原因でコマンドの最後のコールバック スクリプトが実行されない可能性があります。
ikEndEffector(iee) boolean createquerymultiuse
IK エンド エフェクタのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
ikHandle(ikh) boolean createquerymultiuse
IK ハンドルのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
image1(i1) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の最初のアイコンです。
image2(i2) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 2 番目のアイコンです。
image3(i3) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 3 番目のアイコンです。
imagePlane(ip) boolean createquerymultiuse
イメージ プレーンのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
implicitGeometry(ig) boolean createquerymultiuse
暗黙ジオメトリのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
isoparm(iso) boolean createquerymultiuse
サーフェスのアイソパラムのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
joint(j) boolean createquerymultiuse
IK ハンドルのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
jointPivot(jp) boolean createquerymultiuse
ジョイント ピボットのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
lastAutoComplete(lac) boolean createqueryedit
最後のセレクション セットに対して自動完了機能が設定されている場合は true、設定されていない場合は false。通常は照会に使用しますが、-sac/setAutoComplete フラグも指定されている場合は、-sac フラグが優先します。
lattice(la) boolean createquerymultiuse
ラティスのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
latticePoint(lp) boolean createquerymultiuse
ラティス ポイントのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
light(lt) boolean createquerymultiuse
ライトのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
localRotationAxis(ra) boolean createquerymultiuse
ローカル回転軸のセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
locator(lc) boolean createquerymultiuse
ロケータ(すべてのタイプ)のセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
locatorUV(luv) boolean createquerymultiuse
UV ロケータのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
locatorXYZ(xyz) boolean createquerymultiuse
XYZ ロケータのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
nCloth(ncl) boolean createquerymultiuse
nCloth のセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
nParticle(npr) boolean createquerymultiuse
nParticle ポイントのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
nParticleShape(nps) boolean createquerymultiuse
nParticle シェイプのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
nRigid(nr) boolean createquerymultiuse
nRigid のセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
name(n) string create
これがツール コマンドの場合、ツールに適切に名前を付けます。
nonlinear(nl) boolean createquerymultiuse
ノンリニアのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
nurbsCurve(nc) boolean createquerymultiuse
NURBS カーブのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
nurbsSurface(ns) boolean createquerymultiuse
NURBS サーフェスのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
objectComponent(ocm) boolean createquery
コンポーネント フラグがオブジェクト モードに適用されます。
orientationLocator(ol) boolean createquerymultiuse
方向ロケータのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
particle(pr) boolean createquerymultiuse
パーティクル ポイントのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
particleShape(ps) boolean createquerymultiuse
パーティクル シェイプのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
plane(pl) boolean createquerymultiuse
スケッチ プレーンのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
polymesh(p) boolean createquerymultiuse
ポリゴン メッシュのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
polymeshEdge(pe) boolean createquerymultiuse
ポリゴン メッシュのエッジのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
polymeshFace(pf) boolean createquerymultiuse
ポリゴン メッシュのフェースのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
polymeshFreeEdge(pfe) boolean createquerymultiuse
ポリゴン メッシュのフリーエッジのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
polymeshUV(puv) boolean createquerymultiuse
ポリゴン メッシュの UV ポイントのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
polymeshVertex(pv) boolean createquerymultiuse
ポリゴン メッシュの頂点のセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
polymeshVtxFace(pvf) boolean createquerymultiuse
ポリゴン メッシュの頂点フェースのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
rigidBody(rb) boolean createquerymultiuse
リジッド ボディのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
rigidConstraint(rc) boolean createquerymultiuse
リジッド コンストレイントのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
rotatePivot(rp) boolean createquerymultiuse
回転ピボットのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
scalePivot(sp) boolean createquerymultiuse
スケール ピボットのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
sculpt(sc) boolean createquerymultiuse
スカルプトのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
selectHandle(sh) boolean createquerymultiuse
セレクション ハンドルのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
setAllowExcessCount(sae) boolean createeditmultiuse
設定されている場合、項目数は最小であるとみなされます。
setAutoComplete(sac) boolean createeditmultiuse
true に設定されている場合、指定した数の項目が選択されると同時に、ツールは次のセレクション セットを開始するか、コマンドを実行します。
setAutoToggleSelection(sat) boolean createeditmultiuse
true に設定すると、モディファイア キーを押していない場合に Shift キーを押しているような状態になります。つまり、既定で「切り替え選択」動作を取得します。これは 3D ビューのみに適用され、ハイパーグラフ(Hypergraph)やアウトライナ(Outliner)などで行われる選択には通常の規則が適用されます。
setDoneSelectionPrompt(dsp) string createeditmultiuse
setAutoComplete が設定されていない場合(下記を参照)、特定のセレクション セット内の項目が十分な数になると同時にこの文字列が表示されます。これを設定してないけれども必要になった場合は、-setSelectionPrompt フラグに設定した文字列と同じ文字列が使用されます。
setNoSelectionHeadsUp(snh) string createeditmultiuse
何も選択されていないときにヘッドアップ プロンプトとして表示される文字列を指定します。これはセレクション セットごとに個別に設定する必要があります。
setNoSelectionPrompt(snp) string createeditmultiuse
何も選択されていないときにヘルプとして表示される文字列を指定します。これはセレクション セットごとに個別に設定する必要があります。
setSelectionCount(ssc) int createeditmultiuse
このセレクション セット内の項目数です。0 は、完了するために必要な数を意味します。
setSelectionHeadsUp(ssh) string createeditmultiuse
何かが選択されているときにヘッドアップ プロンプトとして表示される文字列を指定します。これはセレクション セットごとに個別に設定する必要があります。
setSelectionPrompt(ssp) string createeditmultiuse
選択項目がある場合に、ヘルプとして表示される文字列を指定します。これはセレクション セットごとに個別に設定する必要があります。
showManipulators(sm) boolean createqueryedit
設定されている場合、すべてのアクティブ オブジェクトに対してマニピュレータが表示されます。これは基本的には、マニピュレータの表示ツール(Show Manipulator Tool)を使用するようなものです。
spring(spr) boolean createquerymultiuse
スプリング シェイプのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
springComponent(spc) boolean createquerymultiuse
個々のスプリングのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
stroke(str) boolean createquerymultiuse
ペイント エフェクト(Paint Effects)のストロークのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
subdiv(sd) boolean createquerymultiuse
サブディビジョン サーフェスのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
subdivMeshEdge(sme) boolean createquerymultiuse
サブディビジョン サーフェスのメッシュ エッジのオン/オフを設定します(コンポーネント フラグ)。
subdivMeshFace(smf) boolean createquerymultiuse
サブディビジョン サーフェスのメッシュ フェースのオン/オフを設定します(コンポーネント フラグ)。
subdivMeshPoint(smp) boolean createquerymultiuse
サブディビジョン サーフェスのメッシュ ポイントのオン/オフを設定します(コンポーネント フラグ)。
subdivMeshUV(smu) boolean createquerymultiuse
サブディビジョン サーフェスのメッシュ UV マップのオン/オフを設定します(コンポーネント フラグ)。
surfaceEdge(se) boolean createquerymultiuse
サーフェス エッジのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
surfaceFace(sf) boolean createquerymultiuse
サーフェス フェースのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
surfaceKnot(sk) boolean createquerymultiuse
サーフェス ノットのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
surfaceParameterPoint(spp) boolean createquerymultiuse
サーフェスのパラメータ ポイントのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
surfaceRange(sr) boolean createquerymultiuse
サーフェス レンジのセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
surfaceUV(suv) boolean createquerymultiuse
サーフェス UV のセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。
texture(tx) boolean createquerymultiuse
テクスチャのセレクション マスクのオン/オフを設定します(オブジェクト フラグ)。
title(t) string createqueryedit
すべてのメッセージの前置きとして使用する文字列(すなわちツールの「名前」)を指定します。
toolCursorType(tct) string createqueryedit
ツール内にある場合のツールのカーソル タイプを設定する、文字列の識別子を指定します。有効な識別子は次のとおりです。「create」、「dolly」、「edit」、「pencil」、「track」、「trackHorizontal」、「trackVertical」、「transformation」、「tumble」、「zoom」、「zoomIn」、「zoomOut」、「flyThrough」、「dot」、「fleur」、「leftArrow」、「question」、「doubleHorizArrow」、「doubleVertArrow」、「sizing」、「dollyIn」、「dollyOut」、「brush」、「camera」、「noAccess」、「input」、「output」、「leftCycle」、「rightCycle」、「rightExpand」、「knife」。
toolFinish(tf) script createqueryedit
ユーザがスクリプトを終了するときに実行されるスクリプトを指定します。
toolStart(ts) script createqueryedit
ユーザが最初にスクリプトを入力するときに実行されるスクリプトを指定します。
totalSelectionSets(tss) int createqueryedit
セレクション セットの総数です。
vertex(v) boolean createquerymultiuse
メッシュ頂点のセレクション マスクのオン/オフを設定します(コンポーネント フラグ)。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

import maya.cmds as cmds

# Simple example of "attach curve" tool created using scriptCtx. This tool
# prompts the user to select two curves to attach. As soon as two curves
# are selected, the attach is performed. It uses the selection type
# flag 'curveParameterPoint' from "selectType" command to specify the
# selection mask for this tool.

cmds.scriptCtx( title='Attach Curve', totalSelectionSets=1, fcs="select -r $Selection1; performAttachCrv 0 \"\"", cumulativeLists=True, expandSelectionList=True, setNoSelectionPrompt='Select two curves close to the attachment points', setSelectionPrompt='Select a second curve close to the attachment point', setDoneSelectionPrompt='Never used because setAutoComplete is set', setAutoToggleSelection=True, setSelectionCount=2, setAutoComplete=True, curveParameterPoint=True )

# And a more complex example of fillet blend tool (two sets of any number
# of "surface curves").  Notice how the selection lists are passed as
# arguments to the callback function, performBlendGiven.

cmds.scriptCtx( i1='birail3Gen.xpm', title='"Birail 3+ Tool', toolCursorType='edit', totalSelectionSets=2, cumulativeLists=True, expandSelectionList=True, fcs='select -r $Selection2; performBirail 0 3 \"birailThreePlusProfileContext\" ', setAutoToggleSelection=[True,True], setAutoComplete=[False, False], setSelectionCount=[0,2], nurbsCurve=[True,True], isoparm=[True,True], curveOnSurface=[True,True], surfaceEdge=[True,True], polymeshEdge=[True,True], setNoSelectionPrompt=['Select any number of profiles','Select two rails'], setSelectionPrompt=['Select additional profiles or hit ENTER', 'Select the second rail'], setDoneSelectionPrompt=['Profiles selected. Hit ENTER to start rail selection.', 'Rails selected. Hit ENTER to compute birail. '] )

# Here's Birail 3+ where you select any number of curves, then 2 rails:

cmds.scriptCtx( i1='birail3Gen.xpm', title='"Birail 3+ Tool', toolCursorType='edit', totalSelectionSets=2, cumulativeLists=True, expandSelectionList=True, fcs='select -r $Selection2; performBirail 0 3 \"birailThreePlusProfileContext\" ', setAutoToggleSelection=[True,True], setAutoComplete=[False, False], setSelectionCount=[0,2], nurbsCurve=[True,True], isoparm=[True,True], curveOnSurface=[True,True], surfaceEdge=[True,True], polymeshEdge=[True,True], setNoSelectionPrompt=['Select any number of profiles','Select two rails'], setSelectionPrompt=['Select additional profiles or hit ENTER', 'Select the second rail'], setDoneSelectionPrompt=['Profiles selected. Hit ENTER to start rail selection.', 'Rails selected. Hit ENTER to compute birail. '] )

# userBirailContextCallback has "true" as the first argument, which suggests
# that $Selection2 contains all of $Selection1 items (as -cumulativeLists
# true is specified in the tool creation.)