Index of point in pop not present in mathmix pop

Hello, I need to use the index of the point to instance texture (index of point modulo number of texture) but index is not available in Scope list.

My only way was to create “Id” attribute and, in GLSL top, write:

const uint id = TDIndex();
int ID = int(id);
Id[id] = ID

And then create attribute texId = Id % number of texture

It works but there is certainly an easier and more elegant way…

Thank you in advance,
Jacques

Hello @jacqueshoepffner

You can use the built‑in attribute _PointI for this. You’ll find a list of supported built‑in names by expanding the last row in the Scope List. For more information on the built‑in attributes, you can check this Wiki page.

1 Like