Post #2317: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

🏷️ Tags

macro hotkeys intermediate unsolved

  • Macro Editor
  • Modal Editor
  • Python Scripting

💬 Content

roaoao:

Add a Macro Operator for this tool and use a separate slot for modal operators.

Thank you , but I can’t understand how to do this… I tried create a macro operator (M) with 1 slot calling move tool (bpy.ops.transform.translate(release_confirm=True))… I create another macro operator with first slot setting snap options, 2nd slot calling my macro M (open_menu(“M”)), 3rd slot with print info (overlay(“finished move tool”)… print info showed on init movetool, not waiting movetool conclusion.


| macro operator “M” |
-------------
→ slot 1 = bpy.ops.transform.translate(release_confirm=True)


| macro operator “CustomMove” |
---------------------
→ slot 1 = C.scene.tool_settings.transform_pivot_point = ‘CURSOR’;
→ slot 2 = C.scene.tool_settings.snap_target = ‘CENTER’
→ slot 3 = open_menu(“M”)
→ slot 4 = overlay(“move object finished”)

overlay printed before move tool finished


🔗 View on Blender Artists