This core interface allows you to display the HotKey Editor dialog, and convert keyboard shortcut files to the new .hsx format. Available in 3ds Max 2020.1 Update and higher.
Methods:
<void>ShowHotkeyDialog()
Displays the Hotkey Editor dialog.
<boolean>ConvertLegacyHotkeys <string>legacyKbdxFilePath <string>convertedHsxFilePath
Converts the legacy keyboard shortcut .kbdx file at legacyKbdxFIlePath to a .hsx file at the specified convertedHsxFilePath. Returns true if successful, false otherwise.
Note: This function will overwrite an existing file with the same name without warning. Use with care.
EXAMPLE
``` -- convert a legacy file old_file = "C:/my_kbdx/DefaultUI.kbdx" new_file = "C:/my_kbdx/transform2.hsx"
-- check if file exists, because it will be silently overwritten if (getfiles new_file).count == 0 then ( format "upgrading file % \n" old_file success = UiCustomization.ConvertLegacyHotkeys old_file new_file format "success: %\n" success ) else ( format "file already exists: % \n" new_file ) ```