How to set adjustment settings of a variant

Discussion regarding all scripting related questions
Please DO NOT post to this thread anything that is not directly related to scripting of Capture One.

How to set adjustment settings of a variant

Postby Pat78 » Tue Jul 03, 2018 8:34 pm

Hi there, i'm pretty new to scripting and looking for a way to set the adjustment settings of a variant.

this is the script i'm using, but i'm missing something:

Code: Select all
tell application "Capture One 11" to tell current document
   set thevariant to the last variant
   set sharpening amount of adjustment settings of thevariant to 100
end tell


Can anyone point me in the right direction how to set the adjustment settings?

Thanks a lot!

Patrick
Pat78
 
Posts: 7
Joined: Tue Sep 19, 2017 10:00 am

Re: How to set adjustment settings of a variant

Postby Eric Nepean » Wed Jul 04, 2018 1:10 am

Hi Pat, try this
Code: Select all
tell application "Capture One 11"
   set thevariant to the last variant
   set sharpening amount of adjustments of thevariant to 60.0
end tell

Tips
  • No need to tell the document. The application contains all the variants currently displayed
  • The properties of "variant" include "adjustment" The class of "adjustment" is "adjustment settings"

I find it worthwhile checking log history, and slecting the replies window, to see what Applescript told the application, and what the application replied back. In this case:
Code: Select all
tell application "Capture One 11"
   get last variant
      --> variant 1118 of collection 128 of document "Temp5M"
   set sharpening amount of adjustments of variant 1118 of collection 128 of document "Temp5M" to 60
end tell
Cheers, Eric
[late 2015 iMac, 4GHz i7, 24GB RAM, external SSDs. GX8, E-M1, GX7, GM5, GM1 ....]
Eric Nepean
 
Posts: 221
Joined: Sat Oct 25, 2014 8:02 am

Re: How to set adjustment settings of a variant

Postby Pat78 » Wed Jul 04, 2018 6:36 am

Thanks Eric! And good point using the log historie. This will speed up the learning process.

Pat
Pat78
 
Posts: 7
Joined: Tue Sep 19, 2017 10:00 am


Return to Scripting



Who is online

Users browsing this forum: No registered users and 1 guest