ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
attachDeviceAttr [-attribute string] [-axis string] [-camera] [-cameraRotate] [-cameraTranslate] [-clutch string] [-device string] [-selection]
attachDeviceAttr は、取り消し可能、照会可能、および編集不可能です。
このコマンドは、デバイス/軸ペアをノード/アトリビュート ペアに関連付けます。デバイス軸が移動するときに、アトリビュートの値は軸の値に設定されます。この値は、setAttrScale コマンドを使用してスケールとオフセットすることができます。
なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
assignInputDevice, detachDeviceAttr, devicePanel, getInputDeviceRange, getModifiers, listDeviceAttachments, listInputDeviceAxes, listInputDeviceButtons, listInputDevices, recordAttr, setAttrMapping, setInputDeviceMapping, unassignInputDevice
attribute, axis, camera, cameraRotate, cameraTranslate, clutch, device, selection
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
コマンド内でフラグを複数回使用できます。
|
attachDeviceAttr -d "spaceball" -ax "XAxis" "surface1.translateX";
// This command will assign the XAxis of the spaceball to
// the translateX attribute of surface1. This
// assignment is independent of the selection list (i.e.
// if surface1 was selected when the command is executed,
// surface1 will be translated by the spaceball regardless
// of the current selection.)
attachDeviceAttr -d "spaceball" -ax "XAxis" -at translateX;
// This command will assign the XAxis of the spaceball to
// the translateX attribute of the selected objects.
attachDeviceAttr -d "wacom" -ax "puck:X" -c "puckButton1" -at "translateX" -sl;
attachDeviceAttr -d "wacom" -ax "puck:Y" -c "puckButton1" -at "translateY" -sl;
// This command will attach the wacom puck X and Y axes to the
// X and Y translate attributes of the selected items.
// When the selection changes so does the attachment.
// The -c option means you can only move the selected items
// with the puck when button1 on the puck is down.