already got it to work by importing a script file instead of having the entire list written in the script node in polyscope. please let me know if i shouldnt be doing it like that