Skip to main content

All Questions

Tagged with
3 votes
1 answer
82 views

How can I pass an object (like a bmesh) to an operator or should I not do that?

I have an operator that creates a certain mesh but I want to keep things modular so I separated each operation into its own operator. Like for example, I have an operator that removes vertices that ...
Megan Love's user avatar
0 votes
1 answer
90 views

bmesh as global variable in a modal function?

I am updating as well as trying to optimize an add-on that I haven't touched in a couple of years. I learned python as I was making that add-on back in the day, actually, and now am reading that the ...
Peeter Maimik's user avatar
0 votes
0 answers
97 views

How do I write a blender addon script outside blender without having to pip install all the modules such as bpy, bmesh etc. separately?

I'm trying to create an add-on outside of Blender and I'm not sure how to go about installing dependencies to create it on another IDE. I don't want to use blender's script editor as it would be ...
Joseph Nwokotubo's user avatar
1 vote
0 answers
41 views

Python: Nonsensical edge addresses when using bmesh.ops.create_circle

TL;DR: Two different faces created using bmesh.ops.create_circle have the same edges... sort of? ...
display-name's user avatar
1 vote
0 answers
110 views

How can I run Bmesh ops interactively inside an operator with a popup?

I would like to add some bmesh operators to one of my operator class. The operator has pop up menu invoked by return wm.invoke_props_dialog( self) so the values are ...
yarun can's user avatar
  • 428
0 votes
1 answer
168 views

Delete components script crashes

I wrote an addon that removes components (using BMesh) depending on the context of the selection. The problem is that he crashes a Blender. I cannot establish a pattern, but most often this happens ...
Сергей Голубев's user avatar
1 vote
1 answer
1k views

How to update Blender's naming index thing (.001, .002, etc.) after joining objects

I've been trying to reuse certain parts of code as functions in my bpy scripts. But that means that the same bmesh will be created as 'my_bmesh.001' the next time I run that function. To deal with ...
Perregrinne's user avatar
0 votes
0 answers
99 views

How to hardcode mesh objects as python variable declarations

I am doing an addon, and I need to load constantly some premade objects to reproduce and edit it, I through that making the data directly avaliable from python would help to build fast bmesh variants. ...
StackOverflowToxicityVictim's user avatar
1 vote
1 answer
102 views

Why does creating a new face int layer break Unwrap Reset?

EDIT: This apparently is a bug (https://developer.blender.org/T52723) However, I'm still creating bmeshes in the draw method of my panels which is bad practice, but not the cause of this problem. I'...
Yethiel's user avatar
  • 11
3 votes
2 answers
262 views

Problem with BMesh Vertex Location Precision

I'm writing an add-on that imports vertex locations and builds a BMesh by placing vertices at those locations. I'm running into precision issues, since the imported data can be large floating point ...
D. Waschow's user avatar
3 votes
2 answers
2k views

how add properties to operator modal draw?

UPDATE Here another example in order to clarify this question, I did a video in order to resume the problem https://www.youtube.com/watch?v=yShhJOzkJBk: here the addon working without the BGL CODE.....
yhoyo's user avatar
  • 2,285