Linked Questions

0
votes
0answers
28 views

To improve runtime, which operators to avoid?

To improve runtimes, I am trying to avoid using operators that lead to scene updates. See here for the background: Python performance with Blender operators Why avoid bpy.ops? Finding vertices in a ...
2
votes
2answers
359 views

How can I delete keyframes and animation data for all selected objects?

I am trying to do as the title suggests: remove all keyframes and animation data from all selected objects. I am just starting out with Python and add-on development so this has proven to be a ...
0
votes
0answers
17 views

Why my blender script runs fine, than throws error during render

I've wrote a script that creates NURB curves as trails for objects. A small part of it, deletes points from the curves if they are longer than a value. The script runs well if I just play the ...
2
votes
1answer
423 views

How can I add a collection using Python?

I'm new to Blender. Tutorial information as recent as January this year appears to be out of date and I can't figure out how to create a new collection and add an object to it. The most recent ...
0
votes
0answers
36 views

Inconsistent/ Random behavior in Blender

I am generating some shape using python in Blender. Most of the times, when I run the code I get what I expect. But sometimes I see the broken mesh as I have shown in the figure. As far as code's ...
0
votes
1answer
435 views

Iterating vertex groups in Python

I'm having trouble with a script. I'm trying to duplicate a selected object and copy them into an array configuration. Afterwards i'd like to select the same vertex group of each of the duplicated ...
12
votes
2answers
1k views

Is there a way to calculate mean curvature of a triangular mesh?

So I've written a script which does this: Before: After: The code is: ...
1
vote
2answers
486 views

Python 2.8 - deleting .001, .002, etc

I found several threads on this subject but could not distill a solution. I am trying to delete .001, .002, etc. The code should delete these, but every time I rerun my code it is as if nothing was ...
0
votes
0answers
154 views

Blender python subdivision problem: mistake or bug?

I've been working on a python script in Blender (2.8) and so far everything's been going fairly smoothly, except for an infuriating problem I encountered yesterday. It seems that the 'bpy.ops.mesh....
1
vote
1answer
909 views

Importing fonts using python?

I would like my users to select a font, essentially opening a folder so they can choose from a custom library of fonts. The fonts are located in a folder, such as ...
1
vote
1answer
72 views

How do I get a cylinder arrangement of arrays with gradient (increasing/decreasing) heights?

I have the following arrangement of same height cylinders in constanct distances and with constant diameter. Anyone knowing whether I can make cylinders with increasing height as we reach the center ...
0
votes
1answer
363 views

Ungrouping a node group with Python

What is the correct way to ungroup a node group from a script? Essentially, I have a material that contains both nodes and node groups. I would like to expand all node groups in that material, ...
0
votes
0answers
141 views

How do I repeat my script/macro across all selected objects?

I am trying to create an automated LOD process within Blender, that takes a mesh, creates a group using the mesh's name, renames the mesh to '_LOD0', adds a Decimation modifier and then creates 3 more ...
1
vote
1answer
1k views

link nodes in compositor blender 2.8

While trying to link two nodes via python I get this error: AttributeError: 'set' object has no attribute 'output' I can't understand why, following the docs ...
0
votes
1answer
296 views

In Python how can I name the active selection Low Poly, join the others and name them High Poly?

In a Blender 2.8 script I want to bake multiple high poly objects on one low poly. I want to create a script in Blender 2.8 that bakes in selected to active mode. The active selection must be named "...

15 30 50 per page