Post #605: fj

📋 Metadata

  • Author: roaoao
  • Date: 2017-03-21 00:41:24
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00604

🏷️ Tags

macro hotkeys intermediate solved

  • Macro Editor
  • Python Scripting

💬 Content

fjg3d:

Is there a PME way to store the current pivot mode, perform a macro which changes the pivot mode, then return to the original pivot? Sort of how you store the component mode with the dissolve macro.

Yes, you can store pivot mode in the first command:

pivot_mode = C.space_data.pivot_point

And restore it in the last item:

C.space_data.pivot_point = pivot_mode

But it works only for mouse hotkeys. Will fix keyboard hotkeys in the next version.


🔗 View on Blender Artists