All Questions
Tagged with python custom-attributes
18
questions
7
votes
3
answers
3k
views
Manually setting custom attributes per edge / vertex / etc
I'm trying to determine if it's possible to define custom attributes associated with vertices or edges of a mesh and then assign values to them manually as part of the mesh creation process, much like ...
3
votes
1
answer
66
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.
...
2
votes
2
answers
57
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:
...
2
votes
1
answer
181
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
779
views
Display object custom value in the object panel
I'm trying to create some tool for blender that requires to store and show some boolean value for each object.
I have create simple Panel in Object context with one bool property sadly it's not ...
2
votes
1
answer
452
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 ...
2
votes
1
answer
614
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 "...
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 ...
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
246
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
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
1
answer
69
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
71
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
...
0
votes
0
answers
47
views
Per Object Attribute not updating instantly
I am using this code, based on a previous question:
https://blender.stackexchange.com/a/302335/171509
...