Problem for select/deselect multiple vertices with API Python #42467

Closed
opened 2014-11-02 06:37:49 +01:00 by Jefferson Rausseo · 5 comments

System Information
Ubuntu 14.04
Nvidia 8600 gt

Blender Version
Broken: 2.72 88cc1a7

Short description of error
Does not work to select and deselect multiple vertices via a script

Exact steps for others to reproduce the error

  1. Enter in mode edit, no vertices selected.
  2. Enter in mode object. Run "script A1" and later enter in mode edit. There is a selected vertex.
  3. Enter in mode object. Run "script A2" and later enter in mode edit. There is not a selected vertex. All right!.
  4. Enter in mode object. Run "script B1" and later enter in mode edit. There is two selected vertex.
  5. Enter in mode object. Run "script B2" and later enter in mode edit. There is two selected vertex. Not right!!!
**System Information** Ubuntu 14.04 Nvidia 8600 gt **Blender Version** Broken: 2.72 88cc1a7 **Short description of error** Does not work to select and deselect multiple vertices via a script **Exact steps for others to reproduce the error** 1. Enter in mode edit, no vertices selected. 2. Enter in mode object. Run "script A1" and later enter in mode edit. There is a selected vertex. 3. Enter in mode object. Run "script A2" and later enter in mode edit. There is not a selected vertex. All right!. 4. Enter in mode object. Run "script B1" and later enter in mode edit. There is two selected vertex. 5. Enter in mode object. Run "script B2" and later enter in mode edit. There is two selected vertex. Not right!!!

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @jefrau

Added subscriber: @jefrau
[error.blend](https://archive.blender.org/developer/F121185/error.blend)

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2014-11-02 09:01:55 +01:00

Thanks for the report, but there is no bug here. Setting selection in Object mode is not a best idea, because it only set given element's select status. However, selecting two vertices can have the side effect of selecting an edge (which happens in your case), but those relations are only handled in Edit mode.

So what happens for you is that you select two vertices. When you switch to Edit mode, their common edge is selected as well. Then back in Object mode you deselect the vertices, but not the edge, so once you go in Edit mode again, those vertices get automatically re-selected.

Thanks for the report, but there is no bug here. **Setting** selection in Object mode is not a best idea, because it only set given element's select status. However, selecting two vertices can have the side effect of selecting an edge (which happens in your case), but those relations are only handled in Edit mode. So what happens for you is that you select two vertices. When you switch to Edit mode, their common edge is selected as well. Then back in Object mode you deselect the vertices, but not the edge, so once you go in Edit mode again, those vertices get automatically re-selected.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#42467
No description provided.