@Cd = rand(1 + @ptnum); vector test = point(0, "Cd", @ptnum); printf("test: %p\n ", test);
the result of printf is
test: {1,0,0}
for all points. Not some random color assigned in the first line.
Is this because
point(0, "Cd", @ptnum)
thanks,
Bruno
@Cd = rand(1 + @ptnum); vector test = point(0, "Cd", @ptnum); printf("test: %p\n ", test);
test: {1,0,0}
point(0, "Cd", @ptnum)
@Cd = rand(1 + @ptnum);
vector test = point(0, "Cd", @ptnum);
vector test = @Cd;
printf("test %f \n", test);
@Cd = rand(1 + @ptnum); vector test = @Cd; printf("test %f \n", test);
Bruno Kindt
always refers to the attributes of the input geometry (independent of changes made within the attribute wrangle)
jlait
There is no way to sanely refer to the currently processing geometry as VEX is not processing the points or your instructions in the order you'd expect.
Hi,
Bumping this as have the same issue. Is there a way to force evaluation of vex code in a wrangle at specific points?
Thanks