ジャンプ先: 概要. 戻り値. フラグ. Python 例.
deformableShape(
[objects...]
, [chain=boolean], [chainHistory=boolean], [createOriginalGeometry=boolean], [createTweakNode=boolean], [createUpstreamTagInjectionNode=boolean], [deformShapeInAttr=boolean], [deformShapeOutAttr=boolean], [frontOfChain=boolean], [localShapeInAttr=boolean], [localShapeOutAttr=boolean], [nodeChain=boolean], [originalGeometry=boolean], [outputPlugChain=boolean], [plugChain=boolean], [supportsComponentTags=boolean], [tagInjectionList=boolean], [tagInjectionNode=boolean], [tweakAttr=boolean], [tweakNode=boolean], [upstreamTagInjectionNode=boolean], [worldShapeOutAttr=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
deformableShape は、取り消し可能、照会不可能、および編集不可能です。
このコマンドはシェイプの変形に関する情報を検索します。
コマンドにシェイプが何も指定されていない場合は、現在選択されているシェイプが使用されます。
なし
chain, chainHistory, createOriginalGeometry, createTweakNode, createUpstreamTagInjectionNode, deformShapeInAttr, deformShapeOutAttr, frontOfChain, localShapeInAttr, localShapeOutAttr, nodeChain, originalGeometry, outputPlugChain, plugChain, supportsComponentTags, tagInjectionList, tagInjectionNode, tweakAttr, tweakNode, upstreamTagInjectionNode, worldShapeOutAttr
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Create an original geometry if it does not exist
cmds.deformableShape('ball', cog=True)
import maya.cmds as cmds
cmds.polyCylinder(n="myGeo", r=1, h=6, sx=4, sy=5, sz=1)[0]
cmds.select(['myGeo.vtx[12:23]', 'myGeo.vtx[25]'])
clusterNode, clusterHandle = cmds.cluster()
cmds.move(1.0, 0, 0, clusterHandle, absolute=True)
# Get the node chain leading up to the shape
cmds.deformableShape('myGeoShape', nch=True)
# Result: [u'polyCylinder1', u'myGeoShapeOrig', u'groupParts2', u'tweak1', u'cluster1GroupParts', u'cluster1', u'myGeoShape'] #
# Get the deformer chain leading up to the shape
cmds.deformableShape('myGeoShape', ch=True)
# Result: [u'tweak1', u'cluster1'] #
# Get the plug chain leading up to the shape
cmds.deformableShape('myGeoShape', pch=True)
# Result: [u'polyCylinder1.output', u'myGeoShapeOrig.inMesh', u'myGeoShapeOrig.worldMesh[0]', u'groupParts2.inputGeometry', u'groupParts2.outputGeometry', u'tweak1.input[0].inputGeometry', u'tweak1.outputGeometry[0]', u'cluster1GroupParts.inputGeometry', u'cluster1GroupParts.outputGeometry', u'cluster1.input[0].inputGeometry', u'cluster1.outputGeometry[0]', u'myGeoShape.inMesh'] #
# Get the output plug chain leading up to the shape
cmds.deformableShape('myGeoShape', och=True)
# Result: [u'polyCylinder1.output', u'myGeoShapeOrig.worldMesh[0]', u'groupParts2.outputGeometry', u'tweak1.outputGeometry[0]', u'cluster1GroupParts.outputGeometry', u'cluster1.outputGeometry[0]'] #