Do you run this on the output of “Probe volume with model”?
Thank you so much, it resolved!
I didn’t run “Probe volume with model” module first, and that was the reason of failure.
modelNode = getNode(‘Output Model’)
coords = slicer.util.arrayFromModelPoints(modelNode)
densities = slicer.util.arrayFromModelPointData(modelNode, ‘NRRDImage’)
print(densities)
[ 376 320 83 541 523 420 488 537 364 508 532 260 168 244
171 651 948 203 166 438 422 135 32 136 145 216 263 79
471 252 42 15 493 620 492 537 428 537 573 117 287 35 …