I think it’s still a little difficult for me to specify an absolute path:disappointed_relieved:
how about print it out?how to do?
seem not good enough:neutral_face:
I would recommend you to complete Python and numpy tutorials, but to answer your question specifically, this should work:
import numpy as np
values=np.array([1,2,3,7,4,3])
fullPath=slicer.app.defaultScenePath+"/values.txt"
np.savetxt(fullPath,values)
print(fullPath)
Of course, it is much more efficient to visualize 3D arrays as images (by slicing, volume rendering, segmenting, etc). If you hover over any position in the image, you can see the coordinate and grayscale value in the data probe widget in the bottom-left corner.