Modeling on Notebooks with HAPTIX

Discussion in 'Modeling' started by wlorenz65, Jul 29, 2016.

  1. When modeling, most time is spent in the editor and HAPTIX stays in background. Although there is nothing to do, HAPTIX 1.31 still consumes 9% of CPU in Paused mode plus some additional % of GPU. This eats battery power and lets the fan get loud.

    If you're developing with Notepad++ and have AutoHotkey_L installed, you can save this script as "Notepad++ Load in MuJoCo HAPTIX.ahk":
    Code:
    SetTitleMatchMode 2
    IfWinActive Notepad++
      Send ^s
    SetTitleMatchMode 1
    Run H:\mjhaptix131\program\mjhaptix.exe -nomocap,,Max
    WinWaitActive MuJoCo HAPTIX
    Send ^o
    WinWaitActive Open model
    Clipboard=%1%
    Send ^v{Return}
    WinWaitActive MuJoCo HAPTIX :
    ;Send c
    ;Send f
    ;Send {F4}
    ;Send {Space}
    Then, in Notepad++, press [F5] for Run / Run... and type:
    Code:
    "H:\Apps\AutoHotkey\Notepad++ Load in MuJoCo HAPTIX.ahk" "$(FULL_CURRENT_PATH)"
    with the path adjusted to the location where you have saved the script. Press Save, enter "Load in MuJoCo HAPTIX" as the Shortcut name and assign a key, for example [F8].

    You can now edit your model with Notepad++ and, in order to test it, just press [F8]. The file will be saved and HAPTIX will start and load it, which takes about 2 seconds. Your fan stays silent and your battery lasts longer.

    If [F8] does not work then there may be a double key assignment in Notepad++. Execute Settings / Shortcut mapper and scroll until you find [F8] and delete the old mapping. BTW the commands in the Run menu are kept in the file "shortcuts.xml" somewhere in your AppData folder. But don't use Windows Notepad to edit this file. Otherwise your changes will be overwritten when you quit Notepad++.