set*groupor setattribfunctions, the changes won't reflect in my code.if(@ptnum == 0){ setpointattrib(0, 'test', 1, 100); // The first point changes the 'test' value for the second point } /* None of the statements become true after this, even if the test attribute on the second point is supposed to be 100. */ if(i@test == 100){ // For the second point, we should step to this statement and print out the ptnum and the value string result = sprintf("%d : %d, ", @ptnum, i@test); printf(result); printf('\n'); } if(point(0, 'test', 1) == 100){ string result = sprintf("%d : %d, ", @ptnum, i@test); printf(result); printf('\n'); }
But when I do the check on a second wrangle after this one, the statements become true, and I get the results:
if(i@test == 100){ // For the second point we should step to this statement string result = sprintf("%d : %d, ", @ptnum, i@test); printf(result); printf('\n'); } if(point(0, 'test', 1) == 100){ string result = sprintf("%d : %d, ", @ptnum, i@test); printf(result); printf('\n'); }
1 : 100,
0 : 0, 1 : 100,What's the difference between these two methods of setting an attribute, and is there any way to enforce a
setattribfunction to affect the outcome of the wrangle node where I used it?"


