Questions tagged [scripting]
Questions concerning scripting in Blender using the Python programming language. Also use this tag for questions about scripting in OSL (Open Shading Language).
6,454
questions
0
votes
0
answers
26
views
How To Capture Mouse Movements During Blender Operations
I'm looking to capture mouse movements while using specific Blender operations, such as ...
3
votes
2
answers
210
views
How can I remove a point of junction and reconnect 2 meshes via python?
I have a set of problematic meshes that have junction vertices (those with 4 edges). And I have to remove these via python and connect those vertices marked in green. Is this possible?
Basically I ...
0
votes
0
answers
24
views
Why is blender crashing with this code line: bpy.ops.gpencil.convert(type='CURVE', use_timing_data=context.scene.transfer_gp_timing_data_toggle)
I selected a grease pencil scribble that wasn't too complex, and the convert tab grease pencil to mesh works very fast on my computer. Blender crashes when executing this line:
curve_obj = bpy.ops....
0
votes
0
answers
62
views
Render liquid fluid simulation scene with low disk space
I have a fluid simulation with particles enabled
Each frame of fluid simulation takes about 3 GB of disk space at a low domain resolution, with the majority caused by ...
2
votes
2
answers
34
views
Some operators don't appear in operator search F3 despite being Registered and Developer Extras enabled
I found this thread and I already have Developer Extras enabled but I noticed that sometimes some operators don't show up in the F3 menu search despite ...
2
votes
1
answer
72
views
Adding Smooth by Angle to an object with python
I want to add the "Smooth by Angle" modifier to a list of objects. So far I have figured out the modifier is a NODES modifier, aka Geometry Nodes, and that it uses a node_tree called "...
1
vote
2
answers
45
views
Use 3D view context in python console
Very often I only want to execute a line of code which can only be executed in the 3D view, for example this:
...
0
votes
0
answers
14
views
restart my script as if it were the first time
I want to see press a button to restart my script as if it were the first time. For this I am forced to close blender, open blender again, open the script, and finally launch the script. Isn't there a ...
0
votes
0
answers
16
views
How to turn off the (auto)terminal output while rendering blender file in headless mode?
I'm using blender rendering with my own python script in headless mode. Some how when blender rendering in headless mode, it automatically print the rendering process it went through. The terminal ...
1
vote
1
answer
34
views
How can I select and remove excess loops from an edge outline using python?
How can I select these vertices in this weird loops encircled in red using python? In this example I only have 5 vertices excess but it's possible for more or lesser vertices to be junctioned like ...
1
vote
1
answer
32
views
How to add initial values to the UI list
I have not been able to figure out how to add initial values to the UI list until now, but now I know the answer.
I will note the code for the answer in the answer.
0
votes
2
answers
34
views
How select key frames on the curve where the value < 0?
How select key frames on the curve where the value < 0?
0
votes
0
answers
21
views
Dependence of rotation on local position. Need driver or script
Dependence of rotation on local position. The vector passes through zero, and the rotation changes. How can I fix it using drivers or a script?
0
votes
0
answers
18
views
Can you use scripting to save the intensity of Light reaching a Face to a CSV file?
As depicted in the photo, I have placed a Light Object below and a Face above. The Face is divided into 16 sections as an example. In this setup, each of the 16 Faces receives a different light ...
1
vote
0
answers
60
views
Script Help for overlapping edges between objects
I am working on a project that involves drawing grease pencil edges using the "mark freestyle edge" feature on edges that do not intersect with edges from other objects. I am using RBDLab to ...