Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • $\begingroup$ Would be wary of the method used in copied bmesh script. If there are changes to mesh in edit mode could be trashed, since it is loading the bmesh then toggling out of edit mode, writing to mesh with selection, then toggling into edit mode. Would either use an edit mode bmesh, or load the mesh after toggling into object object. Confirmed..Simple test: Default cube > edit mode > move some verts, > run script > back to default cube. $\endgroup$
    – batFINGER
    Commented Apr 9, 2020 at 13:16
  • $\begingroup$ @batFINGER I understand, honest mistake due to my inexperience ! Would you be willing to edit the answer to provide a more suitable method since I don't (yet) know the difference between edit mode bmesh and object mode bmesh ? (even if your answer is obviously the simplest one) $\endgroup$
    – Gorgious
    Commented Apr 9, 2020 at 13:23
  • $\begingroup$ Not sure re simplest, one that selects boundaries. If the grid was poked for example, still selects boundaries. Would simply use an edit mode bmesh. Wonder about the ob.select_set if it is to become default and setting via v.select = True is going to be phased out. Accidentally reverted to old ways in my answer lol. $\endgroup$
    – batFINGER
    Commented Apr 9, 2020 at 13:28
  • $\begingroup$ Okay I got it from your answer, it's shorter and less error-prone as you said. In other languages direct attribute access is a bit frowned upon so I guess the setter usage is more encouraged ? $\endgroup$
    – Gorgious
    Commented Apr 9, 2020 at 13:45