Blender Git Loki
Git Commits -> Revision 2e309eb
Revision 2e309eb by Hans Goudey (temp-ui-tweaks) September 22, 2021, 13:54 (GMT) |
Geometry Nodes: Add a toggle to use attributes as input values This adds a toggle to node group inputs exposed in the modifier to use an attribute instead of a single value. When the toggle is pressed, the button switches to a text button to choose an attribute name. Attribute search isn't implemented here yet. One confusing thing is that some values can't be driven by attributes at all, like the size of a primitive node. In that case, we should have a node warning, but that will be separate since it's more general. We can also have an option to turn off this toggle in node group input settings. The two new properties for each input are stored with the same name as the value, but with `"_use_attribute"` and `"_attribute_name"`` suffixes. The properties are not added for socket types that don't support attribute input, like object sockets. Differential Revision: https://developer.blender.org/D12504 |
Commit Details:
Full Hash: 2e309eb86ab0683eba538d4f568c7f2aaa01b248
Parent Commit: f4ee2de
Committed By: Pablo Vazquez
Lines Changed: +155, -8
5 Modified Paths:
/source/blender/blenkernel/intern/attribute_access.cc (+3, -1) (Diff)
/source/blender/editors/object/object_intern.h (+1, -0) (Diff)
/source/blender/editors/object/object_modifier.c (+51, -0) (Diff)
/source/blender/editors/object/object_ops.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+99, -7) (Diff)
/source/blender/editors/object/object_intern.h (+1, -0) (Diff)
/source/blender/editors/object/object_modifier.c (+51, -0) (Diff)
/source/blender/editors/object/object_ops.c (+1, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+99, -7) (Diff)