ジャンプ先: 概要. 戻り値. フラグ. 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
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
chain(ch) boolean create
このフラグは、指定したシェイプを変形するデフォーマのリストを返します。
chainHistory(his) boolean create
このフラグは、ノード チェーンの詳細な説明をディクショナリの形式で返します。これは、Python コマンドとして使用する場合にのみ便利です。
createOriginalGeometry(cog) boolean create
このシェイプの元のジオメトリがまだ存在しない場合は、作成します。
createTweakNode(ctw) boolean create
これにより、従来の微調整ノードがまだ存在しない場合は、作成されます。
createUpstreamTagInjectionNode(cti) boolean create
これにより、編集可能なノードがまだ存在しない場合は、上流コンポーネント タグの射出ノードが作成されます。
deformShapeInAttr(dsi) boolean create
変形シェイプの入力アトリビュートの名前を返します。
deformShapeOutAttr(dso) boolean create
変形シェイプの出力アトリビュートの名前を返します。
frontOfChain(foc) boolean create
このフラグは、デフォメーション チェーンのフロント エンドにあるシェイプ ノードのプラグ名前を返します。何も存在しない場合は、空のプラグを返します。
localShapeInAttr(lsi) boolean create
ローカル シェイプの入力アトリビュートの名前を返します。
localShapeOutAttr(lso) boolean create
ローカル シェイプの出力アトリビュートの名前を返します。
nodeChain(nch) boolean create
このフラグは、ジオメトリがこのシェイプに到達するために通過するノードのリストを返します。
originalGeometry(og) boolean create
このフラグは、originalGeometry として使用するのに最適なデフォメーション チェーン内のノード(通常はフロント エンドのノード)のプラグ名を返します。何も存在しない場合は、空のプラグを返します。
outputPlugChain(och) boolean create
このフラグは、シェイプに接続されている出力プラグのリストを返します。
plugChain(pch) boolean create
このフラグは、シェイプ(入力と出力の両方のプラグ)に接続されているプラグのリストを返します。
supportsComponentTags(sct) boolean create
シェイプがコンポーネント タグをサポートするかどうかを返します
tagInjectionList(til) boolean create
このフラグは、非手続き型の componentTag 射出ノードのリストを返します。
tagInjectionNode(ti) boolean create
このフラグは、デフォメーション チェーンのできるだけ上位にある、参照されていないコンポーネント タグの射出ノード名を返します。入力シェイプと同じにするか、何も存在しない場合は空の文字列にすることもできます。
tweakAttr(twa) boolean create
シェイプに対する微調整を保持するアトリビュートの名前を返します
tweakNode(tw) boolean create
このフラグは、デフォメーション チェーン内の微調整ノードの名前を返します。何も存在しない場合は、空の文字列を返します。
upstreamTagInjectionNode(uti) boolean create
このフラグは、入力シェイプの上流(ただし、最上流は含まない)にある、参照されていないコンポーネント タグの射出ノード名を返します。何も存在しない場合は、空の文字列を返します。何も存在しない場合は、cti/createUpstreamTagInjectionNode フラグを使用して作成できます。
worldShapeOutAttr(wso) boolean create
ワールド シェイプの出力アトリビュートの名前を返します。

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

Python 例

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]'] #