移動先: 概要 戻り値 キーワード. 関連項目. フラグ. Python 例.

概要

pairBlend([attribute=string], [input1=boolean], [input2=boolean], [node=string])

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

pairBlend は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

pairBlend ノードは、2 つの入力のウェイト付けされた組み合わせをブレンドすることができます。既にコネクトされているアトリビュートをキー設定またはコンストレインするときに、自動的に作成されます。

あるいは pairBlend コマンドを使用して、pairBlend ノードを別のノードのコネクトされたアトリビュートにコネクトできます。既に存在するコネクションは pairBlend ノードの入力 1(Input 1)に再コネクトされます。さらに追加のコネクションを pairBlend ノードの入力 2(Input 2)に手動で作成できます。

pairBlend コマンドを使用して、既存の pairBlend ノードへの入力を照会することもできます。

戻り値

stringpairBlend ノードの名前

戻り値の型は照会モードでは照会フラグが基になります。

キーワード

blend, animation, constraints

関連項目

orientConstraint, parentConstraint, pointConstraint, setKeyframe

フラグ

attribute, input1, input2, node
ロング ネーム(ショート ネーム) 引数型 プロパティ
node(nd) string create
ブレンドがドライブするノードの名前。このフラグは、ブレンドの作成時に必要です。
attribute(at) string createmultiuse
ブレンドがドライブするアトリビュートの名前。このフラグは、ブレンドの作成時に必要です。
input1(i1) boolean query
入力 1(Input 1)にコネクトされているノードの文字配列を返します。
input2(i2) boolean query
入力 2(Input 2)にコネクトされているノードの文字配列を返します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

import maya.cmds as cmds

# Create a pairBlend node and connect sphere1's tx and ty to the pairBlend's input1
cmds.nurbsSphere(n='sphere1')
cmds.pairBlend( nd='sphere1', at=['tx','ty'] )
# Query the nodes connected to input1.
#
inputs = cmds.pairBlend('pairBlend1' ,query=True, input1=True)