All Questions
29
questions
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 ...
1
vote
0
answers
661
views
Delete Children Automatically
Is there a way to automatically delete children when the parent is deleted? By automatically I mean that you don't do any selection (or other action) of the children prior to selecting and deleting ...
2
votes
1
answer
382
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
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?
...
0
votes
1
answer
565
views
How to sort objects from a collection using python?
So I'm trying to animate a rubiks cube via a python script using the scripting capabilities given with Blender.
My current cube looks like this:
It consists of 27 separate objects (cubelets) that ...
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 ...
2
votes
1
answer
294
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 ...
3
votes
1
answer
552
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 ...
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?
...
0
votes
0
answers
147
views
Why is deselecting vertices with bmesh not working?
I want to make use of the bmesh module to update mesh selection.
To select vertices works as expected, but to unselect vertices does not work for me...
Am I ...
1
vote
1
answer
348
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 ...
0
votes
0
answers
125
views
INVOKE_DEFAULT cancels selection while EXEC_DEFAULT doesn't
I'm writing a script for exporting convex shapes in a proprietary format. I have an option for V-HACD auto-generating and also an option for manual tweaking of V-HACD settings before exporting. The ...
0
votes
1
answer
4k
views
How can I select a bone by name using python in blender 2.8
I'm new to scripting in blender and am trying to select a bone by name using python. Eventually I would like to loop through all the bones of an armature and translate them to a new location in edit ...
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 ...