Skip to main content

All Questions

1 vote
1 answer
184 views

This script can't run twice, why?

Blender ver 2.83 LTS. Whenever I tried to run this script twice, it came out an error: ERROR (bke.lib_id): C:\b\buildbot-worker-windows\windows_lts_283\blender.git\source\blender\blenkernel\intern\...
Fischer's user avatar
  • 13
0 votes
0 answers
332 views

Assign a datablock to an existing object

For example: camera_obj = bpy.data.camera.new("Camera") obj = bpy.data.objects.new("Camera", camera_obj) works as expected. But is it possible to create ...
Lai Yu-Hsuan's user avatar
  • 2,022
4 votes
3 answers
2k views

How can I delete all 'unused empties' in a blend file?

I have a huge blender file that contains many empty objects, and as a result it is very slow to work with that file. Is there any way to have a python script that deletes objects of type ...
Warner's user avatar
  • 493
1 vote
0 answers
172 views

Changing 'data block' name of object from python script [duplicate]

I am trying to change the name of the object in the data block from the python script. The operation name is: bpy.ops.outliner.id_operation(type='RENAME'). But I ...
Alperen Üretmen's user avatar