ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
skinCluster(
objects
, [addInfluence=string], [addToSelection=boolean], [after=boolean], [afterReference=boolean], [baseShape=string], [before=boolean], [bindMethod=int], [components=boolean], [deformerTools=boolean], [dropoffRate=float], [exclusive=string], [forceNormalizeWeights=boolean], [frontOfChain=boolean], [geometry=string], [geometryIndices=boolean], [heatmapFalloff=float], [ignoreBindPose=boolean], [ignoreHierarchy=boolean], [ignoreSelected=boolean], [includeHiddenSelections=boolean], [influence=string], [lockWeights=boolean], [maximumInfluences=int], [moveJointsMode=boolean], [name=string], [normalizeWeights=int], [nurbsSamples=int], [obeyMaxInfluences=boolean], [parallel=boolean], [polySmoothness=float], [prune=boolean], [recacheBindMatrices=boolean], [remove=boolean], [removeFromSelection=boolean], [removeInfluence=string], [removeUnusedInfluence=boolean], [selectInfluenceVerts=string], [selectedComponents=boolean], [skinMethod=int], [smoothWeights=float], [smoothWeightsMaxIterations=int], [split=boolean], [toSelectedBones=boolean], [toSkeletonAndTransforms=boolean], [unbind=boolean], [unbindKeepHistory=boolean], [useComponentTags=boolean], [useGeometry=boolean], [volumeBind=float], [volumeType=int], [weight=float], [weightDistribution=int], [weightedInfluence=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
skinCluster は、取り消し可能、照会可能、および編集可能です。
skinCluster コマンドは、Maya のスムーズ スキニングで使用します。このコマンドは、skinCluster ノードを使用して、選択したジオメトリを選択したジョイントまたはスケルトンにバインドします。バインドされたジオメトリの各ポイントに作用するジョイントの数に制限はありません。各ジョイントが各ポイントのモーションに影響を及ぼす範囲は、対応するウェイト係数によって決まります。ウェイト係数は、skinPercent コマンドを使用して変更できます。skinCluster コマンドは、新しい skinCluster の名前を返します。| string | (skinCluster ノード名) |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
addInfluence(ai)
|
string
|
|
||
|
||||
addToSelection(ats)
|
boolean
|
|
||
|
||||
after(af)
|
boolean
|
|
||
|
||||
afterReference(ar)
|
boolean
|
|
||
|
||||
baseShape(bsh)
|
string
|
|
||
|
||||
before(bf)
|
boolean
|
|
||
|
||||
bindMethod(bm)
|
int
|
|
||
|
||||
components(cmp)
|
boolean
|
|
||
|
||||
deformerTools(dt)
|
boolean
|
|
||
|
||||
dropoffRate(dr)
|
float
|
|
||
|
||||
exclusive(ex)
|
string
|
|
||
|
||||
forceNormalizeWeights(fnw)
|
boolean
|
|
||
|
||||
frontOfChain(foc)
|
boolean
|
|
||
|
||||
geometry(g)
|
string
|
|
||
|
||||
geometryIndices(gi)
|
boolean
|
|
||
|
||||
heatmapFalloff(hmf)
|
float
|
|
||
|
||||
ignoreBindPose(ibp)
|
boolean
|
|
||
|
||||
ignoreHierarchy(ih)
|
boolean
|
|
||
|
||||
ignoreSelected(ignoreSelected)
|
boolean
|
|
||
|
||||
includeHiddenSelections(ihs)
|
boolean
|
|
||
|
||||
influence(inf)
|
string
|
|
||
|
||||
lockWeights(lw)
|
boolean
|
|
||
|
||||
maximumInfluences(mi)
|
int
|
|
||
|
||||
moveJointsMode(mjm)
|
boolean
|
|
||
|
||||
name(n)
|
string
|
|
||
|
||||
normalizeWeights(nw)
|
int
|
|
||
|
||||
nurbsSamples(ns)
|
int
|
|
||
|
||||
obeyMaxInfluences(omi)
|
boolean
|
|
||
|
||||
parallel(par)
|
boolean
|
|
||
|
||||
polySmoothness(ps)
|
float
|
|
||
|
||||
prune(pr)
|
boolean
|
|
||
|
||||
recacheBindMatrices(rbm)
|
boolean
|
|
||
|
||||
remove(rm)
|
boolean
|
|
||
|
||||
removeFromSelection(rfs)
|
boolean
|
|
||
|
||||
removeInfluence(ri)
|
string
|
|
||
|
||||
removeUnusedInfluence(rui)
|
boolean
|
|
||
|
||||
selectInfluenceVerts(siv)
|
string
|
|
||
|
||||
selectedComponents(cms)
|
boolean
|
|
||
|
||||
skinMethod(sm)
|
int
|
|
||
|
||||
smoothWeights(sw)
|
float
|
|
||
|
||||
smoothWeightsMaxIterations(swi)
|
int
|
|
||
|
||||
split(sp)
|
boolean
|
|
||
|
||||
toSelectedBones(tsb)
|
boolean
|
|
||
|
||||
toSkeletonAndTransforms(tst)
|
boolean
|
|
||
|
||||
unbind(ub)
|
boolean
|
|
||
|
||||
unbindKeepHistory(ubk)
|
boolean
|
|
||
|
||||
useComponentTags(uct)
|
boolean
|
|
||
|
||||
useGeometry(ug)
|
boolean
|
|
||
|
||||
volumeBind(vb)
|
float
|
|
||
|
||||
volumeType(vt)
|
int
|
|
||
|
||||
weight(wt)
|
float
|
|
||
|
||||
weightDistribution(wd)
|
int
|
|
||
|
||||
weightedInfluence(wi)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds
# Create a joint chain and a polygonal plane.
cmds.select(d=True)
cmds.joint(p=(-3.0, 0.0,-12.0))
cmds.joint(p=(-3.0, 0.0, -5.0))
cmds.joint(p=(1.0, 0.0, 5.5))
cmds.joint(p=(6.0, 0.0, 10.0))
cmds.polyPlane(w=20.0,h=20.0,sx=25,sy=25)
# Bind the joint chain that contains joint1 to pPlane1
# and assign a dropoff of 4.5 to all the joints
#
cmds.skinCluster( 'joint1', 'pPlane1', dr=4.5)
# Undo the previous command and bind only joint1 and joint3 to pPlane1
#
cmds.undo();
cmds.skinCluster('joint1', 'joint3', 'pPlane1',tsb=True)
# Set the maximum number of transforms influencing each
# point to 3
cmds.skinCluster('skinCluster1',e=True,mi=3)
# Add transform joint2 to the list of transforms
# that influence the bound skin
#
cmds.select('pPlane1')
cmds.skinCluster(edit=True,ai='joint2')
# Query the influences for the skinCluster
#
cmds.skinCluster('skinCluster1',query=True,inf=True)
# Add a curve influence object
#
cmds.curve(d=3,p=[(2.0, 0.0, -7.0),(5.0, 0.0, -4.0),(6.0, 0.0, 1.0),(6.0, 0.0, 4.0),(5.0, 0.0, 6.0)],k=[0,0,0,1,2,2,2])
# Get the number of nurbsSamples taken along curve1
#
cmds.skinCluster('skinCluster1',edit=True,ai='curve1')
cmds.skinCluster('skinCluster1',inf='curve1',query=True,ns=True)
# Set the dropoff for joint3 to 5.0
#
cmds.skinCluster('skinCluster1',e=True,inf='joint3',dr=5.0)
# Query for the dropoff for joint3
#
cmds.skinCluster('skinCluster1',inf='joint3',q=True,dr=True)