Linked Questions

8
votes
4answers
12k views

How to completely remove all loaded data from Blender?

I'm implementing a Blender Python script to do batch conversions. It works like this: for each model file found in a directory: Import the model Process it Export in other format The problem is, ...
5
votes
4answers
8k views

How to find number of animated frames in a scene via python?

I need to find the number of animated frames after importing a bvh file in blender. scene.frame_start and ...
2
votes
1answer
19k views

How to completely delete an object through python?

How to completely delete an object without using: bpy.ops.object.delete() bpy.ops methods are too slow for my script, so far I am able to delete an object with a ...
5
votes
1answer
4k views

How to prevent memory leakage in Blender?

I have to load lots of objects/meshes(50k) in Blender and render them for which I have written a Python script. My meshes have lots of vertices/faces (in the range of ~[10k, 70k]). I noticed that ...
3
votes
1answer
1k views

Python Scripting: Remove Curve Object

Preferably not using selection, tried bpy.data.meshes.remove don't works for it
3
votes
2answers
1k views

Blender consuming all memory

I have hundreds of thousands of models in a folder. In my script I have a loop which loads each model at a time as object in my scene then render an image of it then delete the object. After couple of ...
1
vote
1answer
1k views

Cannot find camera after deleting and appending a new one with python

I run a background script that: deletes everything: override = {'selected_bases': list(bpy.context.scene.object_bases)} bpy.ops.object.delete(override) ...
1
vote
1answer
478 views

objects.delete doesn't remove completely

I have this part of code in my script: ...
1
vote
1answer
590 views

Script to intersect two objects gets rapidly slower

What I want I have two sets of objects and want to intersect every object of one set with every object of the other set by means of the boolean modifier. The output can be reduced to the vertices of ...
1
vote
1answer
369 views

How to delete all objects/cameras/meshes/etc. using Python scripting?

I have a Blender Python script that uses a loop to sequentially load and render viewpoints of multiple OBJ files that I generally try to run from the command line. However, if I have Blender open, ...
0
votes
1answer
204 views

Delete meshes - context error

I try to delete all meshes I made by putting together about all I could find from this question , using this code: ...
1
vote
0answers
219 views

fully clear scene and cache from scene collections and their embeded components e.g. objects, meshes, materials etc

I have a script which I am loading mutliple .obj files of room models from the disk. Each .obj goes into sub-collections depending whether it is a room in the same house or not. In the beginning of ...
1
vote
1answer
138 views

Deleting temporary mesh after extracting data

When extracting data via temporary mesh, like this: mesh = object.to_mesh(bpy.context.scene, apply_modifiers=True, settings='RENDER') Do I need to delete this ...
1
vote
1answer
162 views

Export collection and set FBX file name as collection name?

How difficult is it to make a selection by collection and set the FBX file name as the collection name? ...
1
vote
0answers
112 views

Delete Children Automatically

Is there a way to automatically delete children when the parent is deleted? By automatically I mean that you don't do any selection (or other action) of the children prior to selecting and deleting ...

15 30 50 per page