I have looked through previous questions on this and many other boards and I cannot seem to find a previous answer.
I have a largish Numpy generated ndarray that represents a harmonograph output (40000,3) using coords_list=np.column_stack((x,y,z))
of the individual axis outputs. Its all in one plane at the moment but this may change. Snippet shown below.
[[ 9.66087215e-01 1.78218213e-01 0.00000000e+00]
[ 9.81957877e-01 2.04711827e-01 0.00000000e+00]
[ 9.97284974e-01 2.31680099e-01 0.00000000e+00]
...
[-5.26862572e-07 -5.59294782e-05 0.00000000e+00]
[ 4.18313552e-07 -3.48825009e-05 0.00000000e+00]
[ 5.71013430e-07 -1.62274906e-05 0.00000000e+00]]
Is blender to be able to read this array to create a curve. I've seen a number of questions that are similar but when I replace the list with an array I get errors as a list was expected rather than an array.
For example - ( How to make a curve path from scratch given a list of (x, y, z) points?). Many others seem to casually say that the lists can be replaced by an array but with no examples, I am a bit flummoxed.
I have also looked at using the foreach_set
method to extract vertices from the NumPy array. But it's way over my head at the moment.
Do I need to convert my array to another format so they can define a curve?