Creating a script with mutliple attractors and custom shapes


I am having trouble with a script I am trying to create. It is about using a custom shape in combination with multiple attractor points in order to scale it. I managed to make the script work in order to make elipses or rectangles but it fails me when I try to involve a custom shape in it. I will attach an image of how it fails as well as the rhino file and the GH file.


manyattractorscustomcurve rh5.3dm (95.5 KB) (12.8 KB)