Page MenuHome

Geometry Nodes: Support creating new attributes in modifier.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Sep 27 2021, 11:58 AM.
Tags
None
Tokens
"Love" token, awarded by hitrpr."Burninate" token, awarded by damian."Love" token, awarded by Yuro."Love" token, awarded by Atticuslv.

Details

Summary

This patch allows passing a field to the modifier as output. In the modifier, the user can choose an attribute name. The attribute will be filled with values computed by the field. This only works for realized mesh/curve/point data. As mentioned in T91376, the output domain is selected in the node group itself. We might want to add this functionality to the modifier later as well, but not now.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Sep 27 2021, 11:58 AM
Jacques Lucke (JacquesLucke) created this revision.
Jacques Lucke (JacquesLucke) edited the summary of this revision. (Show Details)
Hans Goudey (HooglyBoogly) added inline comments.
source/blender/makesrna/intern/rna_nodetree.c
10841

What about this? Attribute domain used by the geometry nodes modifier to create an attribute output

"the attribute" seems like it might be a bit confusing when seen out of context.

source/blender/modifiers/intern/MOD_nodes.cc
600

This should probably copy the description to the new property as well.

962

I think it would be reasonable to evaluated all output fields at once. Fine to leave that to later, but maybe add a comment?

This revision is now accepted and ready to land.Sep 27 2021, 3:12 PM