Making Scripts for repeated Tasks: Eyes layer with exposure

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

Making Scripts for repeated Tasks: Eyes layer with exposure

Postby NNN637009450479539292 » Sat May 02, 2020 5:27 pm

Hi people!

I repeat making the same adjustments over and over again. Skintone Layer, Eyes layer, etc.
I'd like to script them. But I really havent got any clue how to do this :lol:

For example.

Make new layer named Eyes, no mask, exposure + 0,1, shadow + 0,5, clarity+1 opacity 100%
How should this best be done?



I have managed to make new layer called "Skintone" Found it somewhere along the way and renamed it.

Code: Select all
tell application "Capture One 20"
   repeat with thisVariant in (get selected variants)
      set newLayerIndex to 1 + (count of every layer of thisVariant)
      set theNewLayer to make new layer of thisVariant with properties {name:"Skintone"}
   end repeat
end tell


I'd be so glad if you guys helped me.
NNN637009450479539292
 
Posts: 2
Joined: Fri Aug 09, 2019 11:57 am

Re: Making Scripts for repeated Tasks: Eyes layer with expos

Postby NN13765 » Sun May 03, 2020 12:23 pm

I found this script helpful in learning how to do something similar:

https://blog.thomasfitzgeraldphotography.com/blog/2019/10/script-to-automate-creating-a-dehaze-layer-in-capture-one
NN13765
 
Posts: 27
Joined: Sun Mar 29, 2009 11:22 am

Re: Making Scripts for repeated Tasks: Eyes layer with expos

Postby NNN637009450479539292 » Sun May 03, 2020 1:32 pm

It worked! Great! Thank you :D
I have adjusted the script now it works.

Code: Select all
tell application "Capture One 20"
   tell layers of primary variant
      set dehazeLayer to make new layer with properties {name:"Eyes", kind:adjustment, opacity:100} at end
      tell adjustments of dehazeLayer
         set exposure to 0.25
         set clarity amount to 40
         set shadow recovery to 50
      end tell
   end tell
end tell


Eye enhancer: check!
Dunno if the word dehazeLayer needs to stay, but it works!
NNN637009450479539292
 
Posts: 2
Joined: Fri Aug 09, 2019 11:57 am


Return to Scripting



Who is online

Users browsing this forum: No registered users and 3 guests