移動先: 概要 戻り値 関連項目. フラグ. Python 例.
enableDevice([apply=boolean], [device=string], [enable=boolean], [monitor=boolean], [record=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
enableDevice は 「元に戻す」が可能、「照会」が可能、「編集」が不可能 です。
デバイスに関係するアクションに対して、デバイスの有効/無効の状態を設定(または照会)します。
- -monitor
- 指定したデバイスのすべての assignInputDevice と attachDeviceAttr 動作に作用します。
- -record
- デバイスが recordDevice アクションによって記録される(デフォルト)かどうかを指定します。
- -apply channelName [channelName ... ]
- デバイス チャンネルからのデータが、指定したチャンネルにアタッチされたパラメータ カーブに適用されるかどうかを制御します。
applyTake のチャンネルを無効にして、すべての「子」チャンネルの有効な状態を applyTake で無視する、つまり無効にします。
なし
戻り値の型は照会モードでは照会フラグが基になります。
applyTake, defineDataServer, defineVirtualDevice, filter, movIn, movOut, readTake, recordDevice, writeTake
apply, device, enable, monitor, record
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
# Enables all assignInputDevice and attachDeviceAttr actions for the
# device named "clock"
cmds.enableDevice( enable=True, d='clock' )
# Stops applyTake (with no arguments) from updating param curves
# attached to the minutes and hours channels of device named "clock"
cmds.enableDevice( 'minutes', 'hours', enable=False, d='clock', apply=True )