All Questions
102 questions
1
vote
1
answer
27
views
How to select one vertex or edge and make it active? [duplicate]
I want to make a function that sets a vertex, or edge, or face selected and active. But I'm only able to select it but not make it the active vertex, edge, or face. I noticed there is only ...
0
votes
1
answer
48
views
Trouble debugging this script (loop through non-manifold verts on one mesh and find index of closest edge on a different mesh) - any tips
The eventual purpose of this script will be to try to stitch two halves of two different, sliced-open objects, together. This is to be done by individually moving each of the verts on the open non-...
3
votes
1
answer
96
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 ...
1
vote
1
answer
238
views
How can I access and modify a boolean attribute in edit mode?
Re Manually setting custom attributes per edge / vertex / etc
TLDR : In edit mode, the regular interface to access and edit attributes, ...
4
votes
1
answer
123
views
How to get updated mesh locations after object collisions?
I am very new to blender. I have a scene like this,
The top plane is a cloth, the two cylinders and rectangle are collision objects. I click play on the timeline and get this after a few seconds,
I ...
0
votes
0
answers
70
views
When looping the selection_history of a bemesh it Crashes With Error: HIPEW initialization failed: Error opening HIP dynamic library
I'm Making a tool for boundary weight paint pinning from selection with bmesh
Am i supposed to report this as a Bug ?
Edit:
the script works with no issues when using selection_history.active instead ...
1
vote
0
answers
32
views
Reading animation into BMesh and output to png sequence not working - animation looks weird
I am new to Blender scripting, and am trying to animate a flag blowing in the wind, read the vertex positions etc. per frame into memory using BMesh, write the <...
0
votes
1
answer
129
views
Create bmesh & save into OBJ format without opening blender
I want to create a mesh outside of blender, using bmesh module, and save it into an OBJ or whatever, completely through a python script.
...
0
votes
1
answer
39
views
Missing link_faces on mesh
I have a script that iterates through the polygons and link_faces of a mesh, and it has worked great. I am trying to make a conversion to .usd instead of .fbx in my mesh pipeline for a couple ...
0
votes
0
answers
138
views
Limited dissolve & convex hull operators are giving incorrect results when run through script. What is the correct way to run them via a script?
I have a simple mesh like below. I want to do a Limited Dissolve (15 degrees) followed by a Convex Hull operation on the same. When I do it via Blender UI, I get the result as expected. But when I do ...
0
votes
1
answer
111
views
Size of link_loops of a mesh circle is zero?
I have a mesh circle with 32 vertices and I am trying to get the edge loop of the circle (which is actually all vertices in sequence) with following code:
...
1
vote
2
answers
43
views
Loop to distort a copy of a base mesh, but the loop keeps distorting the previously used mesh?
I have three functions:
make_plane(): creates a subdivided plane, applies smooth shading, adds a subsurf modifier, renames it an moves it to a collection
warp_plane(): takes a copy of a the plane ...
0
votes
1
answer
661
views
Copying and rotating object via Blender Python API
I'm new to the Blender API, so I've been doing a lot of playing around with it. I'm having some issues trying to do something that should be simple.
My goal: make a copy of a "base" object, ...
2
votes
1
answer
544
views
I am learning bmesh in blender python and want to extract the index of a new faces created after using bmesh.ops.bevel
I have written a small script to bevel selected edges and want to be able to select the newly created faces in bmesh. It returns a dictionary of the faces, edges, and verts with the types in long-form ...
3
votes
1
answer
631
views
Is it possible to get the UV position of a selected face in the 3d view and display it in a panel?
I want to be able to display the UV coordinates of a selected face (or vert but if I can get one to work I assume the other will too).
I cobbled together a rough script that'll show the UV coordinates ...