Linked Questions

3
votes
2answers
2k views

Object creation slows over time [duplicate]

I know that this has been asked before, but the answers that others have received did not help me much. When creating objects through Python, using bpy.ops.mesh.primitive_cube_add() there is an ...
21
votes
4answers
2k views

Why avoid bpy.ops?

Simple and maybe stupid question: I was reading this lot of time, that "you should avoid using bpy.ops, or "instead of ...
11
votes
4answers
13k views

How to join objects with Python?

I try to do this: bpy.ops.object.select_all() bpy.ops.object.join() in my script. It selects all the stuff like CtrlA but fails on ...
11
votes
3answers
11k views

How to make object A a parent of object B via Blender's Python API?

I have two objects each of them hold in a variable. Now I want to parent them so object A is the parent of object B. How can I ...
5
votes
2answers
14k views

Set active object with python

I want something along the following lines: ...
10
votes
2answers
4k views

Duplicating non primitive mesh with Python

I've created a mesh I want to duplicate using python with specifications for the new duplicate's coordinates. How do I do that?
8
votes
4answers
4k views

Blender becomes very slow with large amount of objects sharing mesh data

In my script I am importing a large amount of objects (+2500) but sharing the mesh data from one single primitive. While this has taken care of importing speed, it completely slows blender down. ...
10
votes
1answer
2k views

Rotation around the cursor with low-level python (no bpy.ops)

In order to optimize my script, I would need some help to perform a rotation around the cursor (see Rotate object around cursor with Python) With low-level python, that means, without ...
5
votes
3answers
2k views

How can I create many objects quickly?

In my application I have to create up to some 1000 tetraders (objects with 4 vertices, 4 faces, 6 edges). As input I get only the absolute vertex coordinates for each tetraeder. From the mathematical ...
5
votes
2answers
1k views

Blender gets very slow to draw a scene having large number of plane?

I have a very simple python script to generate planes in the scene. I want to generate 50000 planes in a scene, to compensate for unavailability of POINT primitive, so that i can render a point cloud. ...
7
votes
3answers
739 views

PythonScript to load data as colored point-cloud

Background I want to render 3D points with color information for scientific visualization. I have several hundred thousands of points up to 2 million. For each point I have [xyz] coordinates and two ...
3
votes
2answers
2k views

How to animate object with data file

I have a csv file and an object, which i would like to animate using the data from the file. The file consists of x- y- and z data and time data. how can i with python code access the objects ...
3
votes
2answers
2k views

How do I batch import one format, then export to another?

I'm hoping this question builds on a previous question, Batch import Wavefront OBJ. I'd like to batch import a bunch of .3ds files and export each of them to their own .js file (using the Three.js ...
6
votes
3answers
2k views

Blender not responding while running my script

When running my script, it can take up to a few hours depending on how detailed my object is. While blender is running my script, blender changes its status "no response" (not sure if it's the ...
0
votes
1answer
2k views

Algorithm for random distribution of circles in a square

I am searching for a concept to distribute circles in a square randomly, so that they dont overlap. All circles are of the same size. The area covered by the circles can be high, up to the theoretical ...

15 30 50 per page