All Questions
Tagged with python custom-attributes
18
questions
0
votes
0
answers
26
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 ...
2
votes
2
answers
48
views
Why `foreach_set()` don't work?
How do I write an integer attribute for each vertex?
For some reason this code doesn't work:
...
0
votes
1
answer
62
views
Transfer (float) vertex-attribute to vertex-weight, to allow GeoNodes to control subsequent Armature binding
In Blender 4.1 or higher, I want to write a custom modifier, which transfers values from a vertex attribute (on geometry generated by geonodes) to a vertex group (usable with other modifiers).
This is ...
0
votes
0
answers
60
views
How can I access and modify a boolean attribute in edit mode?
Re Manually setting custom attributes per edge / vertex / etc
TLDR : In edit mode, the regular interface to access and edit attributes, ...
0
votes
0
answers
27
views
Animating custom attributes with python
I'm looking for a way to animate custom Blender attributes. Let's say we have an attribute created using the solution from this post: Manually setting custom attributes per edge / vertex / etc
...
1
vote
0
answers
19
views
How to color or overlay on vertices via the Python api? [duplicate]
For a plugin I am making, I need to highlight the vertices that the user hovers over. I could not work out this color assignment part yet. I have tried methods then found out they were obsolete. I ...
0
votes
2
answers
236
views
How to Set Selected Edge Bevel Weight in Blender 4.0
I have code that sets the bevel weight of selected edges in an object like this in Blender 3.3 LTS:
...
0
votes
0
answers
43
views
Per Object Attribute not updating instantly
I am using this code, based on a previous question:
https://blender.stackexchange.com/a/302335/171509
...
2
votes
1
answer
171
views
Link geometry node sockets in python
I'm trying to link the values of a Named Attribute node to the scale vector of the Instance on Points node in Python but I couldnt find a way to do this anywhere...
I want to do something like this:
...
2
votes
1
answer
418
views
How to delete all attributes for multiple selected objects in Blender 3.6 using Python?
I'm trying to write a script that would delete all custom attributes for multiple selected objects except the 'backed' ones such as position. With some Chat-GPT help I ended up with this code
But the ...
1
vote
1
answer
1k
views
How can I assign material colors to a color attribute?
For the record I'm asking this question because it was brought up by a member recently and deleted under my eyes while I was clicking on the submit answer button, but I think it was a worthy question ...
3
votes
1
answer
65
views
Material not updating when param in Attribute node is changed via Python
I have a Material node, it contains the default BSDF Shader whose color is fed via an Attribute Node.
The Type is Object, and Attribute Node's Name is custom_color.
...
0
votes
0
answers
684
views
How to get an object custom property within Geometry Nodes (without the creation of drivers)?
How to access custom object properties within Geometry Nodes without using drivers?
In the Shader Editor this can be easily accomplished by adding an "Attribute" node e.g.:
Note that the ...
2
votes
1
answer
597
views
How can I access named custom instance attributes generated with Geometry Nodes in Python?
I have a question. How can I access named custom instance attributes generated with Geometry Nodes in Python?
What I did:
I set up named custom instance attribute with Geometry Nodes, named "...
0
votes
1
answer
105
views