移動先: 概要 戻り値 関連項目. フラグ. Python 例.
listDeviceAttachments([attribute=string], [axis=string], [clutch=string], [device=string], [file=string], [selection=boolean], [write=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
listDeviceAttachments は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
デバイス アタッチメントのカレント セットがリストされます。
リストは、デバイス アタッチメントの再作成に必要となるコマンドの形式になります。これには、アタッチメント マッピングとデバイス マッピングの両方が含まれます。
assignInputDevice, attachDeviceAttr, detachDeviceAttr, devicePanel, getInputDeviceRange, getModifiers, listInputDeviceAxes, listInputDeviceButtons, listInputDevices, recordAttr, setAttrMapping, setInputDeviceMapping, unassignInputDevice
attribute, axis, clutch, device, file, selection, write
ロング ネーム(ショート ネーム) |
引数型 |
プロパティ |
device(d)
|
string
|
|
|
axis(ax)
|
string
|
|
|
clutch(c)
|
string
|
|
|
このボタンでつかまるアタッチメントのみがリストされます。
|
|
attribute(at)
|
string
|
|
|
リストするアトリビュート アタッチメントを指定します。
|
|
selection(sl)
|
boolean
|
|
|
write(w)
|
boolean
|
|
|
-f フラグを設定している場合は、-f フラグで指定したファイルにデバイス アタッチメントが書き出されます。-f フラグを設定していない場合は、デバイスに指定したファイルに書き出されます。
|
|
file(f)
|
string
|
|
|
デバイス アタッチメントを書き出すファイルの名前を指定します。
|
|
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
cmds.listDeviceAttachments()# List all attachments
# List attachments on the spaceball that are clutched on Button1
cmds.listDeviceAttachments( d='spaceball', c='Button1' )
# write out attachments for the spaceball device, since there is
# no file name specified, attachments will be written out to
# spaceball.mel
cmds.listDeviceAttachments( d='spaceball', w=True )
# write out attachments for all devices, since there is not file
# name specified, attachments will be written out to devices.mel
cmds.listDeviceAttachments( w=True )