point wrangle - data between iterations?

   2307   3   0
User Avatar
Member
63 posts
Joined: 1月 2008
Offline
hello.
I would like to share and change data between point wrangle iterations.
is it possible?

ex: array which is filled in every iteration

thanks
User Avatar
Member
8775 posts
Joined: 7月 2007
Offline
you'll need to have your wrangle either in For loop (feedback) or Solver SOP
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
63 posts
Joined: 1月 2008
Offline
Thank you Tomas.
Unfortunately I need to have the data exactly inside the wrangler. As example:
Array which is collecting @P.y value from every point and checking is the same value is already in array.
User Avatar
Member
8775 posts
Joined: 7月 2007
Offline
then you can use Detail Wrangle and for loop inside, looping over all points
float @uniquePyArray[];

int npt = npoints(0);
for(int pt=0;pt<npt;pt++) {
    vector P = point(0, "P", pt);
    if (find(@uniquePyArray, P.y) < 0) {
        append(@uniquePyArray, P.y);
    }
}
Edited by tamte - 2017年10月28日 13:54:36
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links