All Questions
169
questions
0
votes
0
answers
60
views
Cannot apply Geometry Nodes modifier [closed]
I'm using this script to bring point at specific coordinates to Blender. Then I would like to replace the vertices with objects via Geometry Nodes (Instance on Points node), but in the end I cannot ...
0
votes
0
answers
16
views
Continue baking after changing modifier and adding a new object
blenderers!
I want to write a Python script to simulate two clothes being dropped on top of a cube. Here are the steps that I want to take:
I want to drop the first cloth and simulate the physics for ...
0
votes
1
answer
19
views
bpy.ops.transform.skin_resize script issue
I am iterating through vertices and applying `bpy.ops.transform.skin_resize" to each vertex.
In the info panel, I can see that the correct value is being applied to each vertex, but in the ...
0
votes
0
answers
28
views
change modifiers values with a gizmo
I see a lot of potential in gizmos, yet there is very little info on it. For example, I want to modify the properties of the modifiers or geometry nodes of my object with a gizmo.
How to do this ?
...
1
vote
1
answer
36
views
AttributeError: 'NoneType' object has no attribute 'modifiers'
So I've been trying to add Geo Nodes modifier to a created cube through custom UI panel, even though it works as intended, Blender shows me AttributeError. How can I fix this? (I'm new to coding so ...
1
vote
1
answer
49
views
Cut polygons out of planes in blender using python
I have a plane in blender, generated using a script with known coordinates. I'd like to cut multiple polygons out of the plane. The coordinates of the polygon vertices are already known with respect ...
0
votes
0
answers
18
views
Insetting different lenses into glass frames with bpy
I'm creating an application that generates lenses based on a prescription, and places those lenses into frames so that the user can get a feel for how the lenses might look. The problem I'm facing is ...
4
votes
1
answer
108
views
GN: Setting modifier property via python does not update the 3D view
I copied full datapath for my property Vertices X as shown below and set it via python using ...
0
votes
1
answer
24
views
Create and apply modifier in script without calculating twice
I'm creating and applying a boolean modifier between two complicated objects, like this:
...
0
votes
0
answers
26
views
Applying specific Geometry Nodes modifier to an object with python [duplicate]
I am very new to python and writing blender addons. I am currently trying to make an addon that takes the selected object, makes a new cube at that location, and then applies a set of custom geo nodes ...
0
votes
0
answers
16
views
Is it possible to change first object's place in array modifier with script?
In blender i have a curve and a cylinder that i want to go along the curve, and i use array and curve modifiers for that. But i want to change the place where my first cylinder is placed, it is placed ...
0
votes
1
answer
55
views
Repeteadly calling one modifier upon other
I am trying to run shrinkwrap and then remesh modifier repeatedly but not working. It seems to me there is a infinite loop ...
2
votes
1
answer
94
views
How can I model a non-continous threaded glass jar (lug finish) I'm having difficulty to do it
How can I model a non-continous threaded glass jar (lug finish)
I'm having difficulty doing it. Is there any way to make it? I already spent so much time searching for the solutions but I can't find ...
2
votes
1
answer
240
views
Python: How can I know the position of a modifier in the stack?
For example in the following case, the Armature modifier should have a position index of 0 and the Subdivision a position index of 1. How can I get this index?
2
votes
1
answer
116
views
Backface Culling Toggle Button for Blender GUI project
I have been working on my project for Blender for quite some time and have reached the end of this small section, but I want to add a toggle button to the GUI that toggles if backface culling is off ...
0
votes
0
answers
57
views
Persistent holes in mesh
I have an object, like a cube. I will move other meshes through it, or fire particles at it. I want theses things to pass through the object, leaving a hole where they went through without needing a ...
0
votes
1
answer
30
views
Issue with automated slicing on triangulated mesh
My goal is to obtain the profile of an triangulated mesh through a cutting plane
I have a script that automatically applies a Solidify modifier (without which it won't work) and then a Boolean ...
1
vote
0
answers
186
views
Script to morph between two objects in Blender
I am trying to write a script that will morph one of my object (say a sphere) into another object (say a cube). As my sphere and cube have different number of vertices, I tried to downsample the ...
2
votes
1
answer
140
views
bpy do something every time an object is added
How can I make a condition for every time a new object is added to the scene? Example: Every time an object is added, it's given a triangulate modifier?
3
votes
0
answers
102
views
Msgbus - Subscribe to Modifier Changes
I'm trying to subscribe to changes on modifiers of the active object?
I am not very comfortable with the message bus system, so I wondered if this is a limitation of msgbus or if a different path ...
2
votes
2
answers
138
views
Redo panel make script triggered multiple times while in "Edit Mode"
I tried to make this simple operator to add array modifiers while keep in "Edit Mode"
the goal is, add array modifiers to the object while in edit mode and the array count can be adjusted ...
0
votes
1
answer
107
views
Selecting similar objects by modifiers
I have a collection of objects, each with different modifiers, and I want to select only the objects that have a bevel modifier in their modifier stack, is there a way to do that? Maybe a script of ...
0
votes
0
answers
42
views
2 layered Bevel using Python Script (Blender 3.2.1)
I'm trying to write a python script that created two layers of bevel on an object. I'm working with Blender 3.2.1 and the attached version of Python.
...
0
votes
0
answers
38
views
Creating random positioned cracks on pre made model
I need to apply cracks on model. I've tried to use boolean with crack shaped objects on bigger object but renders take too much time. Also I need 500 renders. Any suggestions ? In the figure below ...
0
votes
1
answer
32
views
Rendering an object at different locations with different rotations [closed]
I need to render 1000-2000 images. There is 2 object in this scene. One of them should be in different positions each image and apply boolean to other object. How do I automotize this action Is there ...
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
326
views
Blender Script - How would you copy all modifier settings like Collisions from an active object to other selected objects?
So the issue im trying to solve is how would you copy all modifier settings or attributes (like Collisions) from an active object to other selected objects? I have many objects I need to copy settings ...
0
votes
2
answers
123
views
Applying gradual transformation to multiple objects
I need to prepare an abstract still image that is going to include numerous little cubes, let's say 100, organized in a stream-like order. While on the left, they should be disorganized - meaning ...
0
votes
1
answer
104
views
Align Active Object to Curve based on Eyedropper
FYI, this is based on my old question in previous post Is it possible to use single pointer to assign on multiple modifers' Pointer Properties at once?. Now, for my learning and experiement purpose, I ...
0
votes
0
answers
267
views
non-manifold fix with bpy script
I have a non-manifold '.stl' mesh which I am able to fix with Blender GUI, with a boolean modifier and intersect operation, according to this tutorial:
https://www.youtube.com/watch?v=2-11OwgRqmE
...
1
vote
1
answer
298
views
Why does this code behave differently as a script than when entered on the console?
I have a grid, (subdivided plane) open in edit mode. If I run the attached script by pasting it into the python console, it creates an empty, adds a hook to the grid, and makes the empty the hook's ...
0
votes
0
answers
132
views
Python script apply_modifier on boolean modifier is very slow
I got a lot of scripts that run... And 99% of the time is lost on one operation in one of my scripts :
...
0
votes
0
answers
117
views
layout.template_modifiers() doesn't work
Code works, but layout (layout.template_modifiers()) with the list of the modifiers are not disabled
...
1
vote
0
answers
30
views
How to make model trim for animation optimization
When I saw Tintin animation movie behind scenes, I see the models are reduced its poly like the image given below. I want to know what is this process technically called and how can we make the models ...
1
vote
2
answers
821
views
Script to Rename selected object same as the active object plus a suffix
So what I want basically is as follows:-
Basically I have two objects with different names. So lets say I select both of the Objects named "First" and "Second". So I make one of ...
0
votes
1
answer
108
views
Remesh modifier script won't let me modify scale
So I made a script with two independent properties for the octree depth and scale features in the remesh modifier. The octree depth one works fine, but the scale one has no effect. what am I doing ...
0
votes
0
answers
109
views
Blender 3.0 assignes None to the object when choosing it in the Boolean modifier
Nowaday I'm trying to learn the Blender scripting and already have a trouble in my Blender 3.0.
The problem is when I choose object in the Boolean modifier there is None assigned to the proper class ...
4
votes
2
answers
169
views
Update Scene.statistics for verts, faces, tris count after modifiers
I've written a python batching function that runs though a list of OBJ files. It imports the OBJ, adds some modifiers, then saves. I want to know the statistics at the start and at the end. However, I ...
6
votes
1
answer
245
views
Adjust fall off custom curve of Vertex Weight Edit modifier using script
I'm writing a script to use with headless Blender but can't seem to figure out how to adjust the fall off curve of the Vertex Weight Edit modifier. Just want to move the upper point (1,1) down to ...
0
votes
0
answers
23
views
line in the center of the head using facebuilder
Hello. I made this head using an addon called Face Builder.
Is there any way to get rid of this line appearing above my head?
1
vote
0
answers
318
views
How to create undo savepoint and rollback to it later in python scripting?
I'm trying to create a script for my scene that splits pre-defined objects into separate parts and exports to STL. It would be easiest to implement by first creating an undo savepoint (the current ...
1
vote
1
answer
314
views
How can I toggle the mirror modifier visibility of all selected objects?
I'd like to toggle the Mirror modifier of selected object. I always do weight paint without the Mirror modifier but I have to check the mirrored half part sometimes. This script works fine but it is ...
0
votes
2
answers
205
views
How to substract solids using scripts [duplicate]
I want to cut a solid with other (ex: cubes) using script
A script like:
...
0
votes
1
answer
395
views
Boolean Intersect Modifier doesn't work with triangular planes
I'm using Blender 2.82 and I'm trying to take body measurements from a 3d mesh of a human body. Right now I'm concentrating on measuring the perimeter of a certain body part, like waist, bust, hips, ...
0
votes
1
answer
213
views
Delete armature and bake animation / boolean
I have an object parented to an armature that is animated with a series of movements. I need to perform some boolean operations to this object in different frames of the animation, but if I just add a ...
1
vote
1
answer
239
views
How to get "Add Modifiers" panel as enum value?
I need all modifiers list as my custom enum value,
i only know to write this by hand, here for example:
...
1
vote
2
answers
3k
views
How to draw Inputs from Geometry nodes modifier in a panel
I am trying to draw the inputs of the Geometry Nodes modifier to a panel, and I tried doing this
...
1
vote
1
answer
281
views
How can I assign string variables to an object selection list
I wanna make a script witch automatically connects my sim geo to my high res geo with a Surface Deformer.
But Object lists only accept objects, not strings. Is there any way to convert strings to ...
0
votes
0
answers
135
views
Blender API - Repair meshes, similar to Windows 3D Viewer?
I have a question about repairing an stl, particularly after a Bollean union. I've been working on a script that allows me to make customizable game pieces for 3d printing. It involves combining a ...
1
vote
1
answer
46
views
How do I define a command for each of the options?
I created a dropdown using dynamic property. How can I set it so that, for example, I can apply that modifier to the name of one of the modifiers selected in the list, but unfortunately I can not get ...