All Questions
245
questions
4
votes
2
answers
860
views
Bpy get the name of a collection an object belongs to
For an if statement, I want to check if my current object is in collection 'coll'
Here's what I have so far:
...
0
votes
0
answers
41
views
How to create some points attach to an object using script?
The question is I want to create some points which construct the area enclosed by brown lines in front for the sofa.This area is attached to the sofa and it will follow the action of sofa such as move ...
1
vote
1
answer
234
views
How to select a collection from the 3D viewport by right-clicking on one of the objects in a collection
Recently, I asked a question about how to select a parent directly from the viewport by right-clicking.
However, this time, I would like to know if it is achievable to select a collection using the ...
0
votes
1
answer
2k
views
AttributeError: 'Object' object has no attribute 'origin_set'
I'm writing a script to create a cubical object out of several joined planes. After joining the meshes into one object (shadow_catcher), I need to set its origin to ...
0
votes
0
answers
85
views
How to use the same function on each object in the collection using script
How to select objects in the "Cube" collection one by one
Deselect the active one, select the next one from the list and perform x10 scaling operations on it. in script
For example
Cube (...
1
vote
1
answer
331
views
An array of 3D arrows (python in Blender)
I am new to Blender and I want to create an array of 3D arrows; the array itself is 2*2 (constant space between each object) but the arrows are 3D.
I hope to write a python code for it but I don't ...
0
votes
1
answer
464
views
How to set up driver via python script between Custom Properties of objects?
I want to set up drivers: from Custom Properties of a Camera to Custom Properties of selected object.
Based on a script from 6 year old post:
How to put together a driver with python,
I manage to ...
2
votes
1
answer
1k
views
How to code min and max values for custom property to selected object?
The following script creates Custom Property "TheNameOfTheSelectedObject_MyFloat" to the selected object, but it doesn't have "min" and "max" values:
...
1
vote
1
answer
98
views
1
vote
1
answer
93
views
Iterating through a collection and assigning a material to each object based on csv
I am trying to take the 1s and 0s in the B column, and use those to apply the mat_available (1) and the mat_occupied (0) to the planes.
I am a beginner in python, so my knowledge is limited. I was ...
1
vote
1
answer
237
views
Type Error: self.text
After learned about new changes in blender API, I had to update script from 2.8 into 3.0 using : instead of =.
So following the ...
1
vote
1
answer
890
views
How to resize an object proportionally via setting edge length?
I'm trying to scale or resize an object to a specific size by picking an edge from that mesh, and then setting that edge to a new measurement, automatically resizing the whole object proportionally. ...
0
votes
1
answer
36
views
Joining & Rotating objects created in code through loop
I'm a Blender & Python newb, so the nuances haven't been all that enjoyable :)
I'm trying to create a 1x2 stack of cubes that joins and rotates each layer by 45 degrees. Below is the code I have, ...
6
votes
2
answers
1k
views
Print Material Color of Active Object
I feel like I'm close on this one. I am trying to print the material color of the active object.
Currently it is printing a value, but when I select a new active object, it prints the same value.
I'm ...
3
votes
1
answer
191
views
How to select all related objects?
For example,
there is cube that have boolean modifier with sphere object and sphere object also have union boolean with torus,
and the cube also mirrored with empty object as origin.
The question is, ...