Next, I asked ChatGPT: "Thanks. Now refine the script by storing the position of the handles of each pathPoint as well." (Why write 'Thanks' I have no idea. Good training for the rare occasions in the future when I'll be speaking to a real human, I guess!). And the result: