Post #2082: Hi there

📋 Metadata

  • Author: coreyon
  • Date: 2019-03-22 12:31:29
  • Type: answer
  • Quality Score: 7/10
  • Replies (1): post_02084

🏷️ Tags

macro hotkeys advanced solved

  • Macro Editor
  • Python Scripting

💬 Content

Hi there
i found a way to toggle “Rotate around selection”

Command tab:

vIn = C.user_preferences.view.use_rotate_around_active ; vOut = str(vIn) ; O.pme.overlay(text="Normal Rotate = "+vOut) ; C.user_preferences.view.use_rotate_around_active = 0 if vOut == "True" else 0; C.user_preferences.view.use_rotate_around_active = 1 if vOut == "False" else 0;

Hope someone can show me a better way of doing it
Thanks


🔗 View on Blender Artists