This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenkernel
Hans Goudey 8e21d528ca 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
2021-09-16 20:49:10 -05:00
..
2021-08-26 12:39:45 +10:00
2021-09-12 19:51:16 +10:00
2021-08-09 22:55:38 +10:00
2021-07-16 11:48:54 +10:00
2020-12-15 17:19:55 +01:00
2021-09-16 18:23:53 -05:00
2021-08-20 02:30:11 +02:00
2021-07-02 12:15:29 +10:00
2021-06-10 12:15:59 +02:00