delete this thread

I’ve moved your post to the scripting forum because it doesn’t relate to anything specifically about 2D.

Please edit your post to use code-tag s too, reading code as plain text is hard.