2
$\begingroup$

I have a cube and cone , and I want to place each cone in the corner of the cube. The simple way to do it would be:

enter image description here

But, I'm trying to understand how capture attribute works, so I'm trying to set the position for these instances explicitly by using the positions that I capture from the geometry(cube). I did something like this:

enter image description here

It seems to superimpose all 6 instances into the median of the cube. I suppose it's a bit unreasonable for me to expect it would match the number of instance for each vertex position.

Then does that mean the value of the captured attribute is the median of all the position of vertices? Then again, I also do know that it can be actually use to get face/vertex specific data like this: enter image description here

So I'm confused, How does the capture attribute actually work? Does it give an average of all set of data in the spreadsheet? And how can I use this to set the position of the given set of instances to the position of each vertex?

$\endgroup$
3
  • $\begingroup$ In your second image, geometry output of the capture attribute is linked to nothing. In consequence its output is always (0,0,0). This output should be connected among so that there is a defined context to capture into. $\endgroup$
    – lemon
    Commented Feb 16 at 9:55
  • $\begingroup$ @lemon , but where do I actually connect it to? $\endgroup$
    – bzal
    Commented Feb 16 at 10:03
  • $\begingroup$ What Does Capture Attribute Add to Geometry? $\endgroup$ Commented Feb 16 at 10:15

1 Answer 1

3
$\begingroup$

The capture attribute node output should be connected to a (chain of) element(s) in order to be used by them.

enter image description here

Think about it like so:

In the cube geometry flow,

We capture (capture is known at cube vertex/point level)

This capture is linked to "instance on points" (capture is known at instance level)

This is linked to "set position" (capture is know of it as we are talking about instance position, which know the capture)

etc.

Read more about capture attribute node

$\endgroup$
2
  • $\begingroup$ I somehow get an intuition for it, but, using the same method how would you put a cone on each face of the cube? I tried changing the domain to face which didn't quite work ( thought it should have gotten the position of each face which should had been 6 points, but cones don't appear accordingly) ctrl.vi/i/BGqTc5iFf $\endgroup$
    – bzal
    Commented Feb 16 at 10:34
  • $\begingroup$ Well, 8 points, 6 faces... so not directly. Use "mesh to point" with "face" option. $\endgroup$
    – lemon
    Commented Feb 16 at 10:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .