All Questions
29
questions
5
votes
3
answers
2k
views
can I get number of edges connected to a vertex
I essentially want to put a fence up around the edge of my object, is there a way I can select all vertices with 3 edges connected to it?
...
3
votes
3
answers
341
views
Blender Python: How to test for "selectable" objects in viewport?
Is there a way to check if objects are selectable in Blender Python?
The code below checks if an object is visible, but is there also something to check if an object is also selectable in viewport?
...
3
votes
2
answers
352
views
How can I fully select a collection using python with blue highlight?
I have found this thread and several other threads but nothing with any legit answers. We can somewhat select a collection using for example this script that "selects" the one at index 2:
<...
3
votes
1
answer
146
views
How Can I Automatically Separate a Mesh into Individual Faces (meshes) in Blender?
How do I separate a selected mesh into multiple meshes based on its faces.
What I know how to do: enter Edit mode, select a face of a cube, press P for separate, press S for selection, and repeat this ...
3
votes
1
answer
560
views
How to select vertices on the left side of a plane using python?
I would like to select only the vertices on the left side of my plane using Python (like on the screeenshot), does anybody have an idea how to do it ?
I try the following to get all vertices but i'm ...
2
votes
2
answers
3k
views
Is it possible to deselect vertices in Python?
I have an existing selection which I'd like to further isolate using Python scripting. In this instance the math is simply that if the X coordinate is greater than zero, it should be deselected.
I ...
2
votes
3
answers
396
views
Python - How to scale vertices with pivot being set to cursor?
I made a script that creates a circle, deselects all vertices in edit mode, selects first 5 vertices and then scales those vertices. I expected those vertices to be scaled with 3D cursor which sits in ...
2
votes
1
answer
779
views
Python: How to select only outer faces that are exposed to light via script?
EDIT: Since it's impossible to select only the outer faces using Blender's UI tools, I'm looking for a Python solution that will check each face to see if it does have a certain degree of light (...
2
votes
1
answer
297
views
Select all faces parallel to ground
Is there a way to select all faces in my mesh that have normals that point upwards, with a range of how much they need to be pointing upwards to be selected?I have a mesh of a house, and I want to add ...
2
votes
1
answer
384
views
Why is the underlying command of "select all" not working when executed with python? (Grease Pencil)
While in edit mode of a grease pencil object, the tooltip of "select all" says that the corresponding python command would be ...
1
vote
1
answer
2k
views
How to select objects by collection from selected objects in the scene with Python?
I just started using python and got stuck.
I found this script which is used to take the selected objects from the scene and add them to a list based on the name of the material.
I should do almost ...
1
vote
1
answer
350
views
Recursive search for selected vertices
i am working on a tool and need to get selection islands in the mesh. I want to keep only the biggest connected vertex selection in the mesh.
I wrote a function that recursively searches a ...
1
vote
1
answer
59
views
msgbus for collection selection in outliner
I want a callback for Collection selections in the Outliner.
So far I already found a common solution for object selections:
...
1
vote
1
answer
283
views
How can I get all selected collections in the Outliner?
In 2022 there was an answer to a question over at
devtalk.blender.org about selecting multiple collections.
The answer was this code segment:
...
1
vote
1
answer
3k
views
How can I count objects that are in a collection instance using Python?
I have this script which should count all the selected objects in the scene, but it doesn't. It cannot count the 6 monkeys that are part of a collection instance.
Can you help me?
...