Page MenuHome

Geometry Nodes: New Field at Index node.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Jan 13 2022, 11:52 AM.

Details

Summary

This node allows accessing data of other elements on the context geometry (to retrieve data from a different geometry, the Transfer Attribute node should be used).

The node can e.g. be used to generalize what the Edge Vertices node is doing. This node setup does the same as if one would use the "Position 1" output, but it allows retrieving any information from the vertex.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Jan 13 2022, 11:52 AM
Jacques Lucke (JacquesLucke) created this revision.
Hans Goudey (HooglyBoogly) added inline comments.
release/scripts/startup/nodeitems_builtins.py
760

I'm not entirely happy with the categories for these two "field" utility nodes, but I don't have another solid idea at the moment. I added that to the agenda for next week.

source/blender/nodes/geometry/nodes/node_geo_field_at_index.cc
143

Could consider making this into a template function and using it for the declaration too. Just an idea though, either way is fine with me. We've duplicated this kind of logic so many times already anyway...

This revision is now accepted and ready to land.Jan 14 2022, 10:20 PM