Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

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.

1 comment:

  1. Really helpful, Was searching for this quite long :)

    ReplyDelete

Please use Blender.StackExchange.com for python scripting questions unrelated to this post.