Capture One 16.5.6 was just released last week and for the second time in as many months, again contains new script properties (woo) – this time a theme around cropping.
User crop ratios
This class refers to the user generated ratios you save yourself. There are several capabilites:
EX 1.
Make a new ratio. Note ratios are expressed as decimal – e.g 1.7777777r is 16:9
|
1 2 3 4 5 |
tell application “Capture One 23.16.5.6” tell current document make new user crop aspect ratio with properties {name:“foo”, ratio:1.43} end tell end tell |
EX 2.
Delete a ratio by name
|
1 2 3 4 5 6 |
— can only delete the user ratios, not the app ratios tell application “Capture One 23.16.5.6” tell current document delete user crop aspect ratio named “foo” end tell end tell |
EX 3.
Delete all ratios
|
1 2 3 4 5 |
tell application “Capture One 23.16.5.6” tell current document delete user crop aspect ratios end tell end tell |
EX 4.
Get a list of ratios by name (or by ratio using the ratio property in place of name)
|
1 2 3 4 5 |
tell application “Capture One 23.16.5.6” tell current document return name of user crop aspect ratios — also ratio of user crop aspect ratios end tell end tell |
EX 5.
Get a list of ALL available ratios from the app, inc user
|
1 2 3 4 5 6 |
— a list of all crop ratio names (string) inc user tell application “Capture One 23.16.5.6” tell primary variant set theAppRatios to available crop aspect ratios end tell end tell |
Changing ratio
EX 6.
It is possible to set the ratio on the variant, using the name (text) of an existing ratio.
|
1 2 3 4 5 6 7 |
— sets a ratio on the variant — maintains crop center where possible, but changes the applied crop ratio (if different) to the smaller side tell application “Capture One 23.16.5.6” tell primary variant set crop aspect ratio to “Square” end tell end tell |
EX 7.
It is also possible to alter the orientation of the ratio using one of three enumerated values, though this has some behaviour that needs to be observed as this will change the crop (maintaining centre and the shortest side).
|
1 2 3 4 5 6 |
— change the orientaiton of the crop. enums for landscape, portrait, square tell application “Capture One 23.16.5.6” tell primary variant set crop orientation to landscape end tell end tell |
The only thing missing is the ability to select the crop ratio at the app level (as a sort of preflight operation to make sure the user has the prescribed cropping behaviour). At the time of writing, this is a (submitted) feature request.
Leave a Reply