11-06-2020, 04:45 PM

So, perhaps I now understand where the problem is. Plugin #2 is designed to correct rectangles, not circles, and it works as follows: You have a distorted rectangle. You make the source path so that its anchors are at the corners of the distorted rectangle. Then you call the plugin.

But if you nevertheless want to use this plugin to correct a distorted circle, you can do as follows, for example. You have to find on the distorted circle 4 points that should be corners of a square after the correction (this is not trivial). You make a path from those 4 points. Then you make a square selection (rectangular with aspect ratio 1:1). Then you call the plugin by choosing

What the plugin does, is that it transforms the 4 anchors of the path to the corners of the target rectangle (the square). If everything is done right, the distorted circle should be corrected. But the problem here is, how to find those 4 points on the distorted circle that should form a square when corrected. Any choice of 4 points will not do.

Your last picture shows that you did as follows, if I guess right: Choose the 4 points on the distorted circle at: top, right, bottom, left. Then call the plugin. In this case those 4 points indeed form a square when corrected, so the result is ok.

There is no magic here. It would be great if we had a plugin which could be given any distorted circle and it would find the correction automatically. But my plugin is very simple. You have to understand what it does: It transforms the 4 anchors to the corners of the target rectangle.

I shall soon publish another plugin to correct circles, but it will do no magic either. It is just a variation of the same theme.

But if you nevertheless want to use this plugin to correct a distorted circle, you can do as follows, for example. You have to find on the distorted circle 4 points that should be corners of a square after the correction (this is not trivial). You make a path from those 4 points. Then you make a square selection (rectangular with aspect ratio 1:1). Then you call the plugin by choosing

- the source path to be that 4-anchor path,

- the target rectangle to be the selection.

What the plugin does, is that it transforms the 4 anchors of the path to the corners of the target rectangle (the square). If everything is done right, the distorted circle should be corrected. But the problem here is, how to find those 4 points on the distorted circle that should form a square when corrected. Any choice of 4 points will not do.

Your last picture shows that you did as follows, if I guess right: Choose the 4 points on the distorted circle at: top, right, bottom, left. Then call the plugin. In this case those 4 points indeed form a square when corrected, so the result is ok.

There is no magic here. It would be great if we had a plugin which could be given any distorted circle and it would find the correction automatically. But my plugin is very simple. You have to understand what it does: It transforms the 4 anchors to the corners of the target rectangle.

I shall soon publish another plugin to correct circles, but it will do no magic either. It is just a variation of the same theme.