Saori Yoshimoto work notes since 2018

Wednesday, August 12, 2020

[VEX] uniqueval, nuniqueval

uniqueval()

int|string uniqueval(<geometry>geometrystring attribclassstring attribute_nameint which)

i.g.)
int count = nuniqueval(0, "point", "foo");
for (int i = 0; i < count; i++) {
    string val = uniqueval(0, "point", "foo", i);
    // ...do something with the value...
}

nuniqueval()

int  nuniqueval(<geometry>geometrystring attribclassstring attribute_name)

i.g.)
int test = nuniqueval(0, "point", "foo") == npoints(0)

No comments:

Post a Comment