Post #3016: ![](https://blenderartists.org/user_avatar/blenderartists.org/anphung/48/39426_2

📋 Metadata

  • Author: roaoao
  • Date: 2020-02-10 23:02:12
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_03014

🏷️ Tags

pie-menu hotkeys advanced solved

  • Pie Menu Editor
  • Python Scripting
  • Context/Poll methods

💬 Content

anphung:

is it possible to set current Active Tool as Context/ Poll method?

Try this code:

tool = C.workspace.tools.from_space_view3d_mode(C.mode); return tool.idname == "builtin.select_lasso"

❤️ 3 likes


🔗 View on Blender Artists