User Tools

Site Tools


jwlua:quickscripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
jwlua:quickscripts [2015/07/13 18:05]
jariw [Swap Metatool Key Assignment]
jwlua:quickscripts [2015/07/13 18:07] (current)
jariw [Swap Metatool Key Assignment]
Line 817: Line 817:
 ==== Swap Metatool Key Assignment ==== ==== Swap Metatool Key Assignment ====
  
-The following script swaps the expression metatool keyboard assignments for the keys '​1'​ and '​2'​. Metatools are saved to the (ASCII) key number, and the Lua ''​string.byte()''​ function is used to find the key number. Simply resaving to the other key number will do a swap of the metatool keys.+The following script swaps the expression metatool keyboard assignments for the keys '​1'​ and '​2'​. Metatools are saved to the (ASCII) key number, and the Lua ''​string.byte()''​ function is used to find the key number. Simply resaving to the other key number will do a swap of the metatool keys. Beta version 0.40 or later is required for this sample code.
  
 <code lua swapmetatools.lua>​-- Load all existing metatool assignments for the Expression Tool <code lua swapmetatools.lua>​-- Load all existing metatool assignments for the Expression Tool
jwlua/quickscripts.txt ยท Last modified: 2015/07/13 18:07 by jariw