5
votes
How can I remove all uv layers but the last one and rename it on multiple objects?
Use a python for that:
...
2
votes
How to drive a modal operator from a class TerrainSculptWorkspaceTool(bpy.types.WorkSpaceTool):?
You have to put this into your invoke method.
...
2
votes
How can I remove all uv layers but the last one and rename it on multiple objects?
Another method which worked for me because the other method didn't.
...
2
votes
How do I make this chunk separation algorithm I've been working on?
I can't tell all of what is going on with your code, there seems to be missing sections.
Also you didn't post the error code so I can't really tell exactly how to fix your one specific problem.
Your ...
1
vote
bpy scripting: Join objects in a collection
You have to make sure you have selected all the objects you want to join using obj.select_set(True) in the for loop and make sure one of the objects is active (...
1
vote
Bpy get the name of a collection of object
There is no collection member in bpy.types.Object
instead you need to search the collection for the object:
...
1
vote
Accepted
How to Do Exponential Step Iteration in bpy.props.IntProperty()?
Yes it is possible. I made a sample panel with an increment/decrement stepper component that increments values of within power of 2. Apologies for the global variable hack. Anyone feel free to edit ...
1
vote
Accepted
Bpy: Add a modifier to every object in the scene that doesn't yet have one
Here you're looping over EXISTING modifiers and checking if they are of the correct type.
You can make use of the barely used for ... else idiom to do what you're ...
1
vote
Accepted
1
vote
Accepted
Bpy check if each object is parented
If an object is parented, then its parent member will refer to the parent object. Otherwise, parent will be empty (...
1
vote
Accepted
1
vote
How to set color object using python and Blender 3.0 individually using a template object
Here is how I create color for an object using Goo package to create a cell object:
...
1
vote
What's the best way of replacing a material in your scene with another one?
To change all objects with old material (brown) to new material (blue).
Go to the Outliner and select Blender File view.
Find the old material under Materials, right click it and select Remap Users.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
scripting × 5477python × 4091
add-on × 569
mesh × 301
animation × 287
interface × 280
objects × 220
rendering × 212
game-engine × 197
node-editor × 169
materials × 168
operator × 159
properties × 158
modifiers × 147
modeling × 141
export × 128
transforms × 124
import × 118
bmesh × 118
uv × 101
drivers × 97
3d-view × 96
bones × 90
camera × 89
command-line × 89