Skip to main content

All Questions

Tagged with
58 questions with no upvoted or accepted answers
4 votes
0 answers
127 views

Is there a way to make an object not-deleteable?

I'd like to have an object that has some sort of special property so that it can't be deleted by accident. for example: if I press X, it will not delete this object but will instead deselect it or ...
Zophiekat's user avatar
  • 759
4 votes
0 answers
1k views

get radius of mesh primitive

I would like to ask whether there is a way of getting the radius of a sphere (mesh primitive) after it has been added. In other words, does Blender somehow distinguish between different shapes? What ...
Kirjain's user avatar
  • 177
3 votes
0 answers
674 views

How to properly import an obj with all materials and textures using python?

I'm just about to import an .obj mesh to Blender and render it all by using a python script. There are three files: .obj, <...
YCL's user avatar
  • 31
2 votes
0 answers
171 views

Use batch generated preview images for template_icon_view

I want to build some sort of library(like Pro Lighting for excample) for the products of a customer. Since the products only have product numbers, I would like to include the batch generated preview ...
Johannes Riegraf's user avatar
2 votes
0 answers
107 views

Is there a way I can batch Auto Smooth hundreds of objects?

I have well over a hundred objects in Asset Management folders that I need to set as smooth and then set Auto Smooth to 40 degrees. Does anyone know if there is a way to do this so I don't have to ...
Bryson Jack's user avatar
  • 3,797
2 votes
0 answers
568 views

How to script Blender drag and drop texture image replacement

I am trying to work up a script that takes an object that already has an image texture, and replaces the image that is in the texture with an image that is dragged into Blender from my computer. In ...
Dassie's user avatar
  • 375
2 votes
2 answers
2k views

Move/rotate object depending on another object

I have an object Cube with copy transforms constraint targeting another object Empty. The constraint is disabled, so when I ...
Tak's user avatar
  • 6,323
2 votes
0 answers
594 views

changing value for multiple objects

i'm trying to make a panel grouping some button changing the display of object in the viewport (wire , subsurf optimal display, smooth shading). It works "ok" for one object, but i'm trying to make ...
kl02's user avatar
  • 21
2 votes
0 answers
826 views

How to detect a change of active object?

I would like to perform some action, programmed in Python, when the user changes the active object. How can I get this information?
Peter Hilgers's user avatar
1 vote
0 answers
86 views

Blender Python Object Transform operations - return values / Thread lock?

I recently stumbled upon the following problem of the data/context object API layer. If one changes object values which are accessed by the scripting with ...
Hans T's user avatar
  • 39
1 vote
0 answers
119 views

Scripting Scaling based on custom properties

I am having an issue, and according to suggestion in my previous question PREVIOUS POST I am writing it as another question. I have a small project where I have a cylinders with custom properties data ...
JakubPelka's user avatar
1 vote
0 answers
32 views

Both pieces of code add light but what difference does it make if I use the first one and not the latter one?

...
Sabal's user avatar
  • 11
1 vote
0 answers
359 views

Is possible use multiprocessing for joining objects in python?

I strongly suggest not to try this code as it will open a number of blender windows out of proportion. This is an example for illustrative purposes of what I would like to understand, that is if it is ...
Noob Cat's user avatar
  • 1,269
1 vote
0 answers
49 views

(location = location * 2.0) Doesn't work as (location *= 2.0)

Why this code works: import bpy location = bpy.context.object.location location *= 2.0 And this doesn't: ...
Samuel Telles's user avatar
1 vote
0 answers
373 views

bpy.context.scene.objects.active = obj returns None when object exists

As the title says, I am trying to set a specific object as the active object. Everything I have read says that bpy.context.scene.objects.active = obj, will do this. ...
rocketdebris's user avatar

15 30 50 per page