移動先: 概要 戻り値 関連項目. フラグ. 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
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: 1 つのコマンドで複数回使用可能なフラグ
|
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.