移動先: 概要 戻り値 キーワード. 関連項目. フラグ. Python 例.
affects([by=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
affects は 「元に戻す」が不可能、「照会」が不可能、「編集」が不可能 です。
このコマンドは、名前を指定したアトリビュートによって作用されるノードまたはノード タイプのアトリビュートのリストを取得します。| string | 作用される/作用するアトリビュートのリスト |
| ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
|---|---|---|---|---|
by()
|
boolean
|
|
||
|
||||
import maya.cmds as cmds # List the attributes on node "sphere" that the "tx" attribute affects cmds.sphere( n='sphere' ) cmds.affects( 'tx', 'sphere' ) # List the attributes on nodes of type "transform" that the "ty" attribute # is affected by cmds.affects( 'ty', by=True, t='transform' ) # List the attributes on nodes of type "revolve" that the "outputSurface" # attribute affects. cmds.affects( 'outputSurface', t='revolve' )