Post #336: ![](https://blenderartists.org/user_avatar/blenderartists.org/aermartin/48/8843_

📋 Metadata

  • Author: roaoao
  • Date: 2016-09-22 02:11:00
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_00335

🏷️ Tags

pie-menu feature-implementation advanced unsolved

  • Pie Menu Editor
  • Python Scripting

💬 Content

aermartin:

@raorao, I was thinking about when you create pie menues in the user-prefs / add-ons section. I am trying to get a paint menu going on and want that color wheel into a pie menu and it struck me… what if I could use the eye-dropper to get the python reference from blenders ui into the pie menu editor set-up.

[ATTACH=CONFIG]453939[/ATTACH]

so to the left is the PME settings and right is just the boolean modifier. but that eye-dropper that’s in the right side of the Object box. To implement that into the PME settings to the left, before the hamburger menu where you can edit the menu.

IDK if it’s possible but all the GUI in blender has a python desc and a Python: method reference.
So in theory when you click the eye-dropper in the PME settings, you get that eye-dropper cursor
then if you click on lets say render button, it copies the python method reference: bpy.ops.render.render()

I tried to implement something like that. Unfortunately, we can’t access button’s data from python.


🔗 View on Blender Artists