Post #2126: ac

📋 Metadata

  • Author: roaoao
  • Date: 2019-03-27 19:13:47
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_02125

🏷️ Tags

hotkeys intermediate solved

  • Python Scripting
  • Hotkey Configuration

💬 Content

actimelvanille:

is there a way to find out the code by myself without being a coder btw?

Yes, you can find the code in sources:

Enable Developer Extras in Edit > Preferences > Interface > Display.
Click RMB to open context menu for Drag Action button.
Select Edit Source and open text editor in Blender:

...
props = tool.gizmo_group_properties("TRANSFORM_GGT_gizmo")
layout.prop(props, "drag_action")
...

In most cases this should be enough to find the code:

tool.gizmo_group_properties("TRANSFORM_GGT_gizmo").drag_action

But in this case you need to know how to find the active tool:

tool = C.workspace.tools.from_space_view3d_mode(C.mode)

❤️ 1 likes


🔗 View on Blender Artists