Post #3493: Ph

πŸ“‹ Metadata

🏷️ Tags

macro hotkeys configuration advanced unsolved

  • Macro Editor
  • Python Scripting
  • Hotkey Configuration

πŸ’¬ Content

Phazor:

What I’m trying to do is toggle between the mask tool and which ever sculpt brush I had before using the mask tool.

builtin_brush.Mask tool id works for me:

tool_id = "builtin_brush.Mask"; tool = C.workspace.tools.from_space_view3d_mode(C.mode); tool_id = getattr(pme, "prev_tool", tool_id) if tool_id == tool.idname else tool_id; setattr(pme, "prev_tool", tool.idname); bpy.ops.wm.tool_set_by_id(name=tool_id)

Phazor:

UPDATE: It works sometimes but not consistently

Can you record and post a video?

Phazor:

Grease pencil has an Line Tool, Arc tool, Arc, Curve, Etc. They All require the use of the E key to extrude the strokes in draw mode. I’m trying to remap the E key to left mouse (press) but I can’t seem to find these keymaps in blender preferences or the PME addon. How do I remap the E key to LMB press?

I can’t find the keymap either. :confused:


❀️ 2 likes


πŸ”— View on Blender Artists