Post #3064: I’m trying to limit a count on blender’s built in step select operator which is

📋 Metadata

  • Author: dpdp
  • Date: 2020-03-10 02:57:07
  • Type: question
  • Quality Score: 7/10
  • Replies (1): post_03065

🏷️ Tags

macro hotkeys advanced unsolved

  • Macro Editor
  • Property Editor
  • Python Scripting

💬 Content

I’m trying to limit a count on blender’s built in step select operator which is normally triggered with CTRL+Shift+‘Numpad +’ or …‘Numpad -’ shortcut. This is non modal and doesn’t have parameters. So, it’s either increasing the selection or decreasing the selection depending on the key combo used. The problem with this is that you can decrement until there are zero elements selected. There’s a property in my pme setup I created that’s initialized on invoke called “steps” that is incremented up or down using a mouse wheel On Update using this command string:

bpy.ops.mesh.select_prev_item() if steps < 0 else bpy.ops.mesh.select_next_item(); steps = 0

The problem is that, just like when using the shortcuts, I can increment low enough that there is no longer anything selected, at which point I can no longer increment or decrement. Is there any way around this that anyone can think of? Maybe some way to keep a running count of my overall movement±? Right now, ‘steps’ goes back to zero after the update.


🔗 View on Blender Artists