4
$\begingroup$

Transferring data between different objects in Geometry nodes

I know we can use the Object info node to get the geometry data from another object and use the geometry data but what about a specific data field.

img1

Example: I'm trying to transfer the float data of the inner radius of object 1 to object 2 outer radius

Data to be taken from object 1 (inner hole radius).

img2

Data to be transferred to object 2 (Outer hole radius).

img3

What I've tried.

I can see the rt_rad attribute created

img4

But how do I get the second object to access the Named Attribute. A link seems to be missing.

img5

Attached file.

$\endgroup$
4
  • 2
    $\begingroup$ You store the value with Store Named Attribute in the first node tree, and read it in the second node tree with Named Attribute. This way you can use the attributes of other objects. $\endgroup$
    – quellenform
    Nov 1, 2022 at 9:51
  • $\begingroup$ I can see the rt_rad attribute created. But how do I get the Named Attribute node to access it in the second object? A link seems to be missing....I also added images. $\endgroup$
    – Rick T
    Nov 1, 2022 at 12:11
  • $\begingroup$ How did you get geonodes working in Blender 2.79? ;) $\endgroup$ Nov 1, 2022 at 12:24
  • 1
    $\begingroup$ @MarkusvonBroady lol is the 2.79 comment because of my color scheme :-D $\endgroup$
    – Rick T
    Nov 1, 2022 at 12:27

1 Answer 1

3
$\begingroup$

When you create a new geometry using "Primitive" nodes, you're asked for values describing those objects, like a cylinder radius. Those are single, constant values, because each such node is creating a single object, for which only a single value makes sense: a cylinder has only one radius.

However, you try to transfer that value from an attribute array, which stores multiple values, one for each element of the attribute's domain. In order to get just one, you can use an attribute statistic node:

With this technique, typically it doesn't matter if you use min, max, mean or average output of the Attribute Statistic node. However in your case you're joining multiple geometries, some without the named attribute, which then is set to default 0 upon joining - so I decided to use the max.

$\endgroup$
1
  • $\begingroup$ Thanks geometry nodes keeps blowing my mind. With this ability I can now make sets of bolts, nuts, and washes that will be 3D printing ready just by changing one value. WOW! $\endgroup$
    – Rick T
    Nov 1, 2022 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.