ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
cluster(
[objects]
, [after=boolean], [afterReference=boolean], [before=boolean], [bindState=boolean], [components=boolean], [deformerTools=boolean], [dumpInfo=boolean], [envelope=float], [exclusive=string], [fixedSetupData=string], [frontOfChain=boolean], [geometry=string], [geometryIndices=boolean], [ignoreSelected=boolean], [includeHiddenSelections=boolean], [name=string], [parallel=boolean], [prune=boolean], [relative=boolean], [remove=boolean], [resetGeometry=boolean], [selectedComponents=boolean], [split=boolean], [useComponentTags=boolean], [weightedNode=[string, string]])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
cluster は、取り消し可能、照会可能、および編集可能です。
cluster コマンドは、クラスタを作成するか、既存のクラスタのメンバーシップを編集します。このコマンドは、新しいクラスタの作成時に、クラスタ ノードの名前を返します。 クラスタ作成後、クラスタのウェイトは percent コマンドまたは set editor ウィンドウを使用して変更することができます。| string[] | (クラスタ ノード名とクラスタ ハンドル名) |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
after(af)
|
boolean
|
|
||
|
||||
afterReference(ar)
|
boolean
|
|
||
|
||||
before(bf)
|
boolean
|
|
||
|
||||
bindState(bs)
|
boolean
|
|
||
|
||||
components(cmp)
|
boolean
|
|
||
|
||||
deformerTools(dt)
|
boolean
|
|
||
|
||||
dumpInfo(dui)
|
boolean
|
|
||
|
||||
envelope(en)
|
float
|
|
||
|
||||
exclusive(ex)
|
string
|
|
||
|
||||
fixedSetupData(fsd)
|
string
|
|
||
|
||||
frontOfChain(foc)
|
boolean
|
|
||
|
||||
geometry(g)
|
string
|
|
||
|
||||
geometryIndices(gi)
|
boolean
|
|
||
|
||||
ignoreSelected(ignoreSelected)
|
boolean
|
|
||
|
||||
includeHiddenSelections(ihs)
|
boolean
|
|
||
|
||||
name(n)
|
string
|
|
||
|
||||
parallel(par)
|
boolean
|
|
||
|
||||
prune(pr)
|
boolean
|
|
||
|
||||
relative(rel)
|
boolean
|
|
||
|
||||
remove(rm)
|
boolean
|
|
||
|
||||
resetGeometry(rg)
|
boolean
|
|
||
|
||||
selectedComponents(cms)
|
boolean
|
|
||
|
||||
split(sp)
|
boolean
|
|
||
|
||||
useComponentTags(uct)
|
boolean
|
|
||
|
||||
weightedNode(wn)
|
[string, string]
|
|
||
|
||||
import maya.cmds as cmds
# Create a cluster which uses the transformation of elbow1
#
cmds.joint(p=(2,0,0),name="elbow1")
cmds.joint(p=(4,0,0),name="wrist1")
cmds.sphere()
cmds.cluster( wn=('elbow1', 'elbow1') )
# Edit cluster1 to use the transformation of wrist1.
#
cmds.cluster( 'cluster1', e=True, bs=1, wn=('wrist1', 'wrist1') )
# Create a relative cluster with its own cluster handle. The
# cluster handle is drawn as the letter "C".
#
cmds.cluster( rel=True )
# Modify the membership of an existing cluster. First, find
# the name of the cluster's associated set, then use the sets
# command to edit the set membership (add a cube and remove a plane).
#
cmds.listConnections( 'cluster1', type="objectSet" )
# Result: cluster1Set
cmds.sets( 'pCube1', add='cluster1Set' )
cmds.sets( 'pPlane1', rm='cluster1Set' )