📋 Metadata

💬 Content

coreyon:

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;

Good code. But I think you can remove this part: C.user_preferences.view.use_rotate_around_active = 0 if vOut == "True" else 0;

Final code:

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 = 1 if vOut == "False" else 0;

🔗 View on Blender Artists