October 04, 2012

Customizing keymap from a python script

One script to disable number key 'ONE', 'TWO' and 'THREE' for layer selection (who uses that stuff anyway without some form of control key - not me anyway). Because i don't switch layers nearly as frequently as switching between vertex, edge and face select mode I felt it was time for a script to set up this stuff how i like it.

If you can follow along, this sets the view3d entries named 'Layers' with keys ['ONE', 'TWO', 'THREE'] to inactive. Then adds the corresponding keys in the 'Mesh' selection mapping to Vertex, Edge and Face selection just as I like it.