All Questions
4,923 questions
3
votes
1
answer
27
views
How to Display Information on the Status Bar Using the Blender Python API? [duplicate]
I want to display some information on the Status Bar (at the bottom left corner of the Blender interface). How can I do that using the Blender Python API?
0
votes
0
answers
11
views
sculpting mode: how to set visibility area (inside/outside) with python code
In practice, when we use boxhide in sculpt mode to crop some part of the object. We can set the visibility area to show outside object or inside object (show in the red circle). But, in coding, when ...
1
vote
0
answers
18
views
Getting the Default Value of a Shader Node's Input Socket
Is there a way to get the default value of a shader node's input socket?
For example, in Blender 4.0, when a Principled BSDF node is added, its Roughness input socket has an initial value of $0.5$, ...
2
votes
1
answer
48
views
How to Set All Mesh Objects in a Scene to Edit Mode Using the Blender Python API?
There is a feature requirement to set all objects in Edit Mode. Is there any way to set every object in the scene to Edit Mode using the Blender Python API?
Added a snapshot for reference, showing the ...
1
vote
0
answers
20
views
Updating body.text of a text object during animation works in scripting tab, but not when reopening .blend file
I'm trying to animate a Text object in Blender by dynamically changing its body.text value during the animation. When I run the script manually from the Scripting tab, it works perfectly and updates ...
0
votes
0
answers
18
views
When adding speakers into my scene with scripting the audio doesn't play and doesn't create an nla soundTrack
The audio does work when I create the speakers manually, so I know it is not a general audio error
I have also tried to manually add an NLA track, but I could not find how to connect it to the audio
...
1
vote
2
answers
38
views
How to Set Grease Pencil Stroke Thickness via Python?
How can I set the thickness (like pressing Alt+S) of a specific stroke via Python in Blender 4.4 or is this even possible? For example if I get the stroke:
...
1
vote
1
answer
19
views
How can I create and apply a boolean modifier with a collection operand using python?
I am trying to apply a Boolean subtract with a collection of objects through coding. The final boolean application isnt working though. How can you make it apply with all items in the collection? I ...
0
votes
0
answers
10
views
Compositor - Reading Mean value programatically
I've got a project with the following Compositor setup:
An image is inputted into a Levels Node
Using Node Wrangler, I open the Mean output in the Image Viewer
I hold right-click on the greyscale ...
1
vote
1
answer
28
views
How can I use Python scripting to move keyframes in a Grease Pencil layer?
My Scene contains a GPencil object with a layer with keyframes.
I'm trying to write a script that shifts the selected keyframes to the right by 1 frame.
---
This code does not work; editing read-only ...
1
vote
1
answer
27
views
How to select one vertex or edge and make it active? [duplicate]
I want to make a function that sets a vertex, or edge, or face selected and active. But I'm only able to select it but not make it the active vertex, edge, or face. I noticed there is only ...
0
votes
0
answers
20
views
Why does Blender call the IntProperty update callback three times?
I have an update function for my IntProperty:
...
1
vote
0
answers
29
views
What's the purpose of a collection for Window Managers?
Do I understand correctly that it's possible to exist only for a SINGLE Window Manager in .blend file ?
If that's true, then for what purpose does exist the COLLECTION for Window Managers ?
By the ...
0
votes
1
answer
42
views
How can I access data blocks, such as text data blocks, from a .blend file?
Recently, someone decided to make .blend files on Debian harder to open. I need a way to access the text data blocks or text files contained within the .blend file that show logic, logic stats, plots, ...
0
votes
0
answers
38
views
How to Create a Custom Camera Mode in Blender?
Cameras in Blender offer many parameters, such as focal length, depth of field (DOF), etc. There are also settings to switch between perspective, orthographic, or panoramic mode.
Let’s say I want to ...