Skip to main content
added 120 characters in body
Source Link
Crantisz
  • 37.4k
  • 4
  • 46
  • 97

So there are several nodes called "sample"Sample ...". For - for example, Sample Nearest, - that can find a point by its attribute "position".

ButHowever, I want to search by other attributes, for examplesuch as Mesh island index.

There is a setup that I struggleam currently struggling with a particular setup:

enter image description here

I useam using the UV pack node to pack my meshes in a square. ButHowever, my meshes are not single meshes, so I have to use Convex hull or Bound box, to makecreate one mesh per object.

ThenAfterwards, I want to getobtain an offset that comesoriginates from the UV Pack, since. Since I disabled rotation, itthis offset should be eventhe same for every point inwithin the same mesh island. ButHowever, I am unsure how do getto retrieve it? I have. I need to search inwithin the meshes to getfind at least one point with a mesh island index that matches the instance index. How to docan I accomplish this?

enter image description here Setup doesn't work, Sample nearest doesn't work with a custom attribute.

So there are several nodes called "sample ...". For example, Sample Nearest, that can find a point by its attribute "position"

But I want to search by other attributes, for example Mesh island index.

There is a setup that I struggle with:

enter image description here

I use UV pack node to pack my meshes in a square. But my meshes are not single meshes, so I have to use Convex hull or Bound box, to make one mesh per object.

Then I want to get an offset that comes from UV Pack, since I disabled rotation, it should be even for every point in the same mesh island. But how do get it? I have to search in meshes to get at least one point with mesh island index that matches instance index. How to do this?

enter image description here Setup doesn't work, Sample nearest doesn't work with a custom attribute.

So there are several nodes called "Sample ..." - for example, Sample Nearest - that can find a point by its attribute "position".

However, I want to search by other attributes, such as Mesh island index.

I am currently struggling with a particular setup:

enter image description here

I am using the UV pack node to pack my meshes in a square. However, my meshes are not single meshes, so I have to use Convex hull or Bound box to create one mesh per object.

Afterwards, I want to obtain an offset that originates from the UV Pack. Since I disabled rotation, this offset should be the same for every point within the same mesh island. However, I am unsure how to retrieve it. I need to search within the meshes to find at least one point with a mesh island index that matches the instance index. How can I accomplish this?

enter image description here Setup doesn't work, Sample nearest doesn't work with a custom attribute.

Source Link
Crantisz
  • 37.4k
  • 4
  • 46
  • 97

How to search by attribute?

So there are several nodes called "sample ...". For example, Sample Nearest, that can find a point by its attribute "position"

But I want to search by other attributes, for example Mesh island index.

There is a setup that I struggle with:

enter image description here

I use UV pack node to pack my meshes in a square. But my meshes are not single meshes, so I have to use Convex hull or Bound box, to make one mesh per object.

Then I want to get an offset that comes from UV Pack, since I disabled rotation, it should be even for every point in the same mesh island. But how do get it? I have to search in meshes to get at least one point with mesh island index that matches instance index. How to do this?

enter image description here Setup doesn't work, Sample nearest doesn't work with a custom attribute.