pycortex
pycortex copied to clipboard
Updating surfaces from javscript
Hi! Thanks for the package.
I am initializing a fsaverage surface and displaying:
vertex = cortex.Vertex(np.zeros(327684), "fsaverage") cortex.webgl.make_static(outpath='viewer', data=vertex)
Then I have javascript that computes the a Float32Array client side, based on user input. I want to update the surface after the page has been created. Any suggestions on how this may be possible? I can do it if I precompute png files. But since I'm generating the array with javascript, I don't have write access from the front end after the page is served. I will keep hacking at this and will post a solution if / when I find one.
Thanks!