Page 1 of 1

Defect in Scrip API Documentation (Crop)

Posted: Mon Feb 03, 2020 12:08 pm
by Andy2011
I think there is a defect in the Corel documentation of the Crop API. The doc quotes the default crop rectangle as
Left 0.0 Right 0.0 Top 0.0 Bottom 0.0
but a saved script has the arguments of e.g.

Code: Select all

'CropRect': ((710,20), 500, 700), 
which looks like top left position as a tuple followed by width and height.
Worst still, using the 4 arguments crashed my PSP2020. Restarting produced an error message in the Script Output window
TypeError: function takes at most 3 arguments (4 given)
Not the biggest trouble with PSP but information might help if debugging a script.