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.

3
  • $\begingroup$ Operators in bpy.ops are for interactive use through the UI and should be avoided in scripts because they depend on context. Using them through scripts may yield unexpected results at best, or fail entirely at worst. Manipulate data directly from bpy.data instead. $\endgroup$ Commented Jan 26, 2023 at 9:29
  • 1
    $\begingroup$ I would try going out of edit mode then in again, it should force the selection state to be updated $\endgroup$ Commented Jan 26, 2023 at 9:44
  • $\begingroup$ @DuarteFarrajotaRamos Yeah I sort of knew that, but had to use bpy.ops operators for some imports and then continued using them. Think I'll stick to bmesh from now on. $\endgroup$ Commented Jan 28, 2023 at 19:20