Blender Key Map (2.93LTS)
はい、こちら。今の所macOSのみです。あとでWindows版も追加できたらいいですね。
前作ってたやつの2.93版、macOSのみですね。
キー抽出用コード
上記の一覧作成のためのコードです。blender上で実行するPythonスクリプトです。ああスクリプティングね、スクリプティング。
以前のものだとdoc未定義のときにエラーを吐いたのでチェックするようにしています。
1. Blenderをコンソールから起動
2.EDIT > Preference の Keymap からキーマップ設定
3.テキストエディタで新規作成、以下のコードを貼り付けて実行
4.コンソールに出力されたタブ区切り文字をコピーしてスプレッドシートにペースト
import bpy
wm = bpy.context.window_manager
def get_operator(idname):
op = bpy.ops
for attr in idname.split("."):
op = getattr(op, attr)
return op
for kc in wm.keyconfigs:
print("[" + kc.name+"]")
print("Config\tMode\tDesc\tOP_Name\tKey")
for km in kc.keymaps:
for ki in km.keymap_items:
s = ""
if ki.idname != "":
if hasattr(ki,'properties'):
if ki.properties != None:
if 'name' in ki.properties:
s="[Name]:"+ ki.properties['name']
tgt = get_operator(ki.idname)
doc = ""
if hasattr(tgt,"__doc__") :
if type(tgt.__doc__) is str :
doc = tgt.__doc__.split('\n')[1]
print(kc.name + "\t" + km.name + "\t" + doc + "\t" +s + "\t" + ki.to_string() )
See Also:
お読みいただきありがとうございます。サポートいただいた分はおやつのグレードアップに使おうかと思います。スキ、SNSにシェアもよろしくお願いします!