Skip to content

Instantly share code, notes, and snippets.

@amb
Created July 6, 2020 16:30
Show Gist options
  • Save amb/7c6a75202c0b4211a192de90eefe4e81 to your computer and use it in GitHub Desktop.
Save amb/7c6a75202c0b4211a192de90eefe4e81 to your computer and use it in GitHub Desktop.
AHK script for better nav in Fusion 360
; by twitch.tv/floatharr
; rebind fusion360 navigation to be the same as blender emulate mmb
#NoEnv
#InstallKeybdHook
SetKeyDelay, 0
SetMouseDelay, 0
SetControlDelay, 0
SetBatchLines, 0
SendMode input
Process, Priority,, High
GroupAdd, Fusion, ahk_exe Fusion360.exe
#IfWinActive ahk_group Fusion
; zooming - ctrl alt lmb -> ctrl shift mmb
$^!LButton::
{
send {alt up}{ctrl down}{shift down}{MButton Down}
keywait, lbutton
send {MButton up}{ctrl up}{shift up}
return
}
; panning - alt shift lmb -> mmb
$!+LButton::
{
send {alt up}{MButton Down}
keywait, lbutton
send {MButton up}
return
}
; orbit - alt lmb -> shift mmb
$!LButton::
{
send {alt up}{shift down}{MButton down}
keywait, lbutton
send {MButton up}{shift up}
keywait, shift
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment