Layer Transformations
Hello !
Some transformations on a artlayer can be done with a method (.resize, .rotate), but some others like a distortion or perspective are not available.
With the Scriptlistener it is possible to see what script (built with the action descriptor) corresponds to a manual perspective for instance, but the parameters are pretty difficult to understand. In fact the main transformation (rectangle -> trapezium) is done with only two mysterious values (< 1.0) one for X and one for Y, and it also translates and resizes the layer ????
Does someone have the code of a function that processes a distortion (or even a perspective) with simple usefull parameters (like the translation vector of each vertex of the rectangle for instance) ?
Thanks for your answers .