Post #4502: Try this in the command tab

📋 Metadata

🏷️ Tags

macro hotkeys advanced solved

  • Macro Editor
  • Python Scripting
  • Hotkey Configuration

💬 Content

Try this in the command tab

bpy.ops.wm.tool_set_by_id(name='builtin.move') if C.workspace.tools.from_space_view3d_mode(C.mode).idname != 'builtin.move'  else bpy.ops.transform.vert_slide('INVOKE_DEFAULT', True)

It calls the move tool, and if its in the move tool it calls the vert slide


🔗 View on Blender Artists