Matthew B <thefatalaccidents(a)gmail.com> writes:
I've also tried to treat it like regions
info.point_attributes.setup()
info.point_attributes.resize(len(points))
RuntimeError: sizes of slave arrays cannot be changed
for i, p in info.points:
info.point_attributes[i] = 0 # or whatever number
IndexError: index out of bounds
This is the correct way, but before that works, you need an assignment
to info.number_of_point_attributes.
HTH,
Andreas