Post #4502: Try this in the command tab
📋 Metadata
- Author: Motiomancer
- Date: 2022-08-15 04:58:48
- Type:
answer - Quality Score: 8/10
- Reply to: post_04501
🏷️ Tags
⚙️ Related PME Features
- 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