Post #1859: ![](https://blenderartists.org/user_avatar/blenderartists.org/alphyn/48/960517_2

šŸ“‹ Metadata

šŸ·ļø Tags

pie-menu hotkeys intermediate solved

  • Pie Menu Editor
  • Mouse Position Restoration
  • Command Configuration
  • Addon Preferences

šŸ’¬ Content

Alphyn:

I’m on 2.8 trying to add Select Linked (L) command to a pie menu. It selects the geometry under the current position of the mouse cursor. There are several problems with this command. Firstly, is that when you press L it memorizes the index of the entity

Hi, @Alphyn, try to remove index value (Command tab):

bpy.ops.mesh.select_linked_pick(deselect=False, delimit={'SEAM'})

Alphyn:

The second problem is that the command grabs the index of the object under your mouse pointer at the time of its execution, which makes sense in most cases, naturally. When using pie menus, however, you need to sample the index of the object even before you select the command, you need to sample it at the time you press the pie menu key

Restore Mouse Position option should help in this case. You can find it in PME Add-on Preferences > Settings tab > Pie Menu tab.


šŸ”— View on Blender Artists