Page MenuHome

Support Attribute Search In Material Nodes
Confirmed, NormalPublicTO DO

Description

The "Attribute" node in shader node trees could support attribute search based on the context data. The search code would be generally the same, but the data would be accessed directly from the evaluated geometry set of the active object.

Therefore attribute search should not be used when the node tree is pinned, or alternatively it could depend on the pinned object context of the node editor, if that is available.

Note that fewer attributes are available for EEVEE. There will have to be a special case there until more attribute access is implemented there.

Some starting points / references:
node_geometry_attribute_search.cc
rB85421c4fab02: Geometry Nodes: Attribute search drop-down
rBc0b2c75c441d: Geometry Nodes: store available attribute names in node ui storage
D10623: Geometry Nodes: Add domain and data type to attribute search

Event Timeline

Hans Goudey (HooglyBoogly) changed the task status from Needs Triage to Confirmed.Mar 16 2021, 2:41 AM
Hans Goudey (HooglyBoogly) created this task.

Hi, I'd like to have stab at this, I wonder if you could expand on "the data would be accessed directly from the evaluated geometry set of the active object." Is this the alternative to the way the search in geometry nodes accesses/stores the attribute data in the node ui storage? So instead of having to store the data and later access it, it can be directly accessed through an existing api?

Yes, exactly!. Using object.runtime.geometry_set_eval

Is this in the python API? If so I am having trouble finding it. I have found the corresponding c function, but I am yet to find any usages of it in the source to see use case examples