インタフェース: IInteractionMode
このコア インタフェースは、[基本設定](Preference Settings)ダイアログの[インタラクション モード](Interaction Mode)タブを MAXScript に公開します。
関連の「インタフェース: MouseConfigManager」も参照してください。
3ds Max 2013 以降で使用可能です。
プロパティ:
IInteractionMode.CurrentMode : enum : Read|Write
CurrentMode enums: {#3dsMaxMode|#MayaMode|#CustomizedMode}
マウスとキーボード両方の現在のインタラクション モードを取得/設定します。
[基本設定](Preference Settings)ダイアログの[インタラクション モード](Interaction Mode)タブに対応します。
例
|
(
theProps = #("ArcRotateLocked", "MayaSelectionMode", "AutoFocusViewportOnKeyPress", "ZoomWheelIncrement",
"MiddleMouseStrokeMode", "ZoomAboutMousePointOrthographic", "ZoomAboutMousePointPerspective",
"RightClickMenuOverSelectedOnly", "ZoomInDirection")
theMethods = #("GetZoomShortcut","GetPanShortcut","GetRotateShortcut")
fn printInteractionSettings =
(
for p in theProps do format "%: %\n" p (execute ("MouseConfigManager."+p))
for m in theMethods do (
(execute ("MouseConfigManager."+m+" &theKey &theButton" ))
format "%: %+%\n" m (theKey as string) (theButton as string)
)--end m loop
)--end fn
for i in #("3dsMaxMode", "MayaMode", "CustomizedMode") do
(
format "INTERACTION MODE: %\n" i
IInteractionMode.CurrentMode = (i as name)
printInteractionSettings()
format "\n"
)
)
|
サンプル出力
|
INTERACTION MODE: 3dsMaxMode
ArcRotateLocked: false
MayaSelectionMode: false
AutoFocusViewportOnKeyPress: false
ZoomWheelIncrement: 1.0
MiddleMouseStrokeMode: false
ZoomAboutMousePointOrthographic: false
ZoomAboutMousePointPerspective: false
RightClickMenuOverSelectedOnly: false
ZoomInDirection: #North
GetZoomShortcut: CtrlAlt+MiddleButton
GetPanShortcut: null+MiddleButton
GetRotateShortcut: alt+MiddleButton
INTERACTION MODE: MayaMode
ArcRotateLocked: true
MayaSelectionMode: true
AutoFocusViewportOnKeyPress: true
ZoomWheelIncrement: 1.0
MiddleMouseStrokeMode: false
ZoomAboutMousePointOrthographic: false
ZoomAboutMousePointPerspective: false
RightClickMenuOverSelectedOnly: false
ZoomInDirection: #SouthEast
GetZoomShortcut: alt+RightButton
GetPanShortcut: alt+MiddleButton
GetRotateShortcut: alt+LeftButton
INTERACTION MODE: CustomizedMode
ArcRotateLocked: true
MayaSelectionMode: true
AutoFocusViewportOnKeyPress: true
ZoomWheelIncrement: 1.0
MiddleMouseStrokeMode: false
ZoomAboutMousePointOrthographic: false
ZoomAboutMousePointPerspective: false
RightClickMenuOverSelectedOnly: false
ZoomInDirection: #SouthEast
GetZoomShortcut: alt+RightButton
GetPanShortcut: alt+MiddleButton
GetRotateShortcut: alt+LeftButton
OK
|