Skip to main content

All Questions

Tagged with
3 votes
1 answer
211 views

How to speed up hiding thousands of objects

I need a quick way to hide thousands of objects in the view layer via python. I have tried running the following code, but it takes 10 seconds to run with 10,000 objects: ...
Christopher Gearhart's user avatar
1 vote
1 answer
150 views

How to remove unused material slots in all objects if the objects are not selected? [duplicate]

Please tell me. How to remove unused materials in all objects if the objects are not selected? I tried this code but didn't get what I wanted. This code does not remove unused materials in unselected ...
Ruslan's user avatar
  • 11
1 vote
1 answer
26 views

Is there a way to automatically discard shapekey "offsets" for individual verts, based on their difference to basis?

I know this is the sorta thing you'd usually code up with a simple script, but I'm absolutely python illiterate. As far as I understand, shapekeys internally store their offset to basis when they're ...
Apois's user avatar
  • 33
2 votes
1 answer
95 views

Create 3D buildings model from real data with a right trade-off between realism and scene size

I'm creating a 3D model of a real large area encompassing 611 square kilometers (236 square miles). I want the model to include the relief map plus the buildings from the main towns in that area. I ...
Antonio Serrano's user avatar
2 votes
2 answers
276 views

Set the distance of all selected objects to another object to be the same

I wonder if there is a way to solve this problem. There are several objects whose size and position are identical. And there is a single terrain mesh. I want to position these objects with always the ...
ahmet oru's user avatar
1 vote
1 answer
99 views

Assign different materials to different object copies

I'm trying to create two different copies of an object with different colors. The code below will create them but they always end up with the same color (1,1,0,1) (yellow). How can I get ...
Matt Majic's user avatar
0 votes
1 answer
519 views

How to batch export multiple meshes into separate .ply files?

I have looked into batch exporting scripts and they seem to come in every format except ply. I'm having trouble understanding how to edit the template batch export script blender provides to export ...
Jubel's user avatar
  • 1
2 votes
2 answers
204 views

Getting the direct objects contained in a collection

I'm using collection.objects to ask for the objects in a collection, and it gives me the whole object hierarchy. How do I get just the root of the hierarchy? So for ...
TomMelson's user avatar
3 votes
1 answer
567 views

How to calculate bounds of all selected objects BUT follow the Active Object's Rotation at the same time?

[ Working code at the bottom, just paste in Blender's text editor. ] There are similar Bounding Box questions out there but this is different, please don't close. I made a script which iterates ...
Armored Wolf's user avatar
1 vote
1 answer
319 views

How can I copy objects without linking data via python?(deepcopy)

How can I copy objects without linking data via python?(That is deep copy the object data.) I'm using this to copy objects, but the new object's data linked to origin. ...
Tac's user avatar
  • 85
0 votes
0 answers
48 views

Script measuring bounding box size of selected objects, and copying those values into the objects' viewport colors (XYZ = RGB)?

I'd like to find a simple scripted way how to: measure the bounding box(es) of a selected object(s) take the XYZ values, and convert them into 0 to 1 numbers with the correct ratio Feed these three ...
Matěj Šak's user avatar
0 votes
1 answer
133 views

Get the XYZ Dimensions of an Object and Rename to those values?

Very new to scripting but utilize it's magic in nearly every .blend I think most of us are familiar with Quixel's awful naming conventions but to give a sense of size in the Asset Browser, I figured ...
brent.blend's user avatar
0 votes
1 answer
218 views

How to copy Names from a selected multiple objects and paste it (combined) into another using a script?

in my work I must do a lot of copying from different multiple objects and combining those names, pasting into final objects name. I was wondering if that can be done with a script.
Remigiusz Papaj's user avatar
1 vote
1 answer
424 views

"context is incorrect" while using handler

This simple script rotates a monkey: ...
Petr's user avatar
  • 21
2 votes
1 answer
464 views

Get an object from unique identifier(memory location, id etc)

First of all, I'm new to blender scripting. I'm looking for a way to uniquely identify an object, something that will reference the same object regardless of renames or any other changes in the scene. ...
Michael777's user avatar

15 30 50 per page
1
2
3 4 5
17