Questions tagged [python]
Python is an object-oriented programming language. In Blender, it is used as a general purpose scripting language and to create add-ons to extend Blender's functionality.
13,285
questions
1
vote
1
answer
11
views
Get tags of appended asset browser object with python
I would like to get the tags of an object that I appended through the asset-browser.
I know this is possible with linked objects using:
...
4
votes
1
answer
98
views
Automatic actions after starting addon?
I'm creating an addon in Blender using bpy. It's a side panel with a few buttons and input fields. To speed up development, I would like the addon to automatically ...
0
votes
0
answers
17
views
Python: Import and Export .STL to changing directories
So I have a script that does a bunch of stuff with and imported STL (It separated it different objects and some other stuff)
Right now I'm just manually importing the STL, then manually batch ...
0
votes
0
answers
12
views
why my ball rig file not show in viewport after linked or append it?
As a beginner in blender, I downloaded a ball rig file to practice ball movement and bouncing. However, I am unable to linked or append it to the blender viewport. I am seeking guidance to solve this ...
0
votes
0
answers
28
views
How to Export JSON from Blender with Split Normals using Geometry Nodes
I am trying to export a JSON file from Blender and need split normals as data on vertices. I have exported a custom attribute named "norm" using geometry nodes. However, I am struggling to ...
0
votes
0
answers
21
views
Ray_casting from curve origins doesn't hit any part of the mesh
The terminal prints none, which I guess means the raycast is not hitting anything. To replicate this output. Run the script and navigate to its sidebar in the viewport, select the two nerve curves and ...
0
votes
0
answers
32
views
How to add a collection from a Blend file via add-on code?
This is my current code:
...
0
votes
0
answers
17
views
Loading gltf via bpy in headless mode crashes while UI works
I have been trying to import a .gltf file into belnder via python script using bpy.
...
0
votes
0
answers
16
views
Obtaining joint-local rotations of armature with python
I have written scripts that take as input the joint-local rotations (in quaternions) of an armature. All works as expected when extracting these rotations directly from a .bvh file and converting them ...
0
votes
0
answers
22
views
Strange new bug in old code with >=4.0 - view_layer compair is not working?
I have an addon I wrote some years ago, around 2.80 days, it's been working fine since with some small tweaks along the way with version updates.
But with version >=4.0 a new bug has shown up...
...
0
votes
0
answers
19
views
Faceshift Stream Data to Blender script help
Hi I am wondering if anyone may be able to help
I am attempting to impliment a data stream from an old software called Faceshift Studio for mocap of a face using my Kinect with a depth sensor. Apple ...
0
votes
1
answer
39
views
Trouble debugging this script (loop through non-manifold verts on one mesh and find index of closest edge on a different mesh) - any tips
The eventual purpose of this script will be to try to stitch two halves of two different, sliced-open objects, together. This is to be done by individually moving each of the verts on the open non-...
1
vote
1
answer
31
views
How do I get the output of the Join Strings node in python?
I'm trying to get the output from as join strings node with the following code but it's printing out nothing?
My Nodes
Code
...
0
votes
0
answers
58
views
How can I use Python to develop a new tool Operator?
Tools generally have three stages:
1 Enter mode
2 Run and edit
3 Exit mode
In the running edit mode, you can usually rotate the view
How can I use Python to develop a new tool, maybe it can be called ...
0
votes
1
answer
48
views
Extract code from Blender Shaders
Still pretty new to blender here, but wow, i'm really enjoying working with it. Next question i've tried to search for information on, is: Is there any way to extract the input- and output-values from ...