Skip to main content

Color Editor Script ?

Comments

12 comments

  • ericnepean

    The following variant adjustments related to color editing can be read (using a get statement) and changed (using a set statement). These properties are all real values.

    I highly reccomend some exploratory get s before using set.

    color balance highlight hue
    color balance highlight lightness
    color balance highlight saturation
    color balance master hue
    color balance master saturation    
    color balance midtone hue
    color balance midtone lightness
    color balance midtone saturation    
    color balance shadow hue    
    color balance shadow lightness    
    color balance shadow saturation    

    A get of the following may result in an interesting summary of values

    color editor settings    
    color profile

    You can easily obtain this kind of information using Script Debugger's dictionary window (how I did it). Using Script Editor you can also  open a a dictionary window, but Script Debugger offers significantly better functionality.

    0
  • FirstName LastName

    Appreciate the reply!!! 

     

    So i have Script Debugger but it doesn't list Color Editor functions. Ive tried changing the values in Capture One and then refreshing Script Debugger Library to search for the adjusted values but unfortunately "Color Editor" has no values to display.

     

    I basically want the Saturation Value paramater of the Color Editor,

     

    **I was able to easily find Saturation for the basic adjustment parameters but i cant use this because if i have a layer above set to No saturation with this adjustment, Color will still bleed through from below layers if i adjust them! Its weird........So i have to use the Color Editor's Saturation and that fixes the issue.

    0
  • ericnepean

    There are two ways to access the settings of Capture One's color editor. One is to excute the following in a terminal window, here are two examples. Defaults can also be set iusing a defaults write command.  However I don't see the default setting you are looking for, possibly because I don't use it.

    defaults read com.captureone.captureone15
    defaults read com.captureone.captureone15  | grep -i "saturation"

    The other is via Applescript using system events to access Capture One's User user interface; you can click on user interface items, and read the settings. This is tedious and complicated work, and few use it. The solution may change for each release. I did something like this in a script for Capture One 11, it worked in Capture One 12 but broke in Capture One 13.

     

    0
  • FirstName LastName

    ‘Crying face’

    Lol! This is all above my head but I do appreciate the help. So far I have gone through every tab in the script editor library and the explorer only to find no settings for this.

    This is my second day learning AppleScript and have basic knowledge but using ScriptDebugger has made it a ton easier.

    I have accomplished six successful scripts but this last one (the easiest adjustment) seems to be the most difficult to script! Lol

    Why can’t the color editor adjustments be listed!! Lol

    I’m pulling my hair out.

    But i won’t give up!! Lol

    0
  • ericnepean

    I wonder if you have an incomplete concept of Capture One's Applescript functions. I think you are effectively trying to swim upriver, trying to use Applescript and Capture One in a way that is not designed to work.

    If you use Script Debugger's Explorer window on Capture One, you will see that there are folders for properties of Documents, Images, Keyword Libraries, Variants and Windows. Tool properties are in the Documents/ToolTabs folder. I can't find any Tool for which the default setting is accessible.

    In fact, I think the default setting is not a property of the Tool. Its a property of the variant, applied upon import.

    When an image is added to Capture Ones database, and it's first variant  is created, that variant has an adjustments property for each kind of possible adjustment. The values of these adjustments are all set to the default value for that camera even though an adjustments tool has neveer been used. (This I know from previous work).

    When the variant is selected and a Tool is opened, it reads the adjustment values for that variant and shows them in the User Interface. The adjustment value isn't changed until and unless you use the tool to change it, or you use Applescript to change it.

    In regards to your design intent, one can do several things:

    1)Use Applescript to tell Capture One to set the color balance master saturation  for some variant or variants to -80. When you select that variant and use the color editor tool you will find that the master saturation value is -80. If you have already selected the variant and are using the color editor tool, you will see the saturation value change to -80.

    2) Make a Custom Preset for Capture One to with a Color Editor adjustment of -80. Option 1) Configure Capture One image Import to use this preset. Option 2) Apply the custom preset to some selected images (either use edit selected images function to apply to all selected images, or use copy adjustments,  deselect evry other adjustment and metadata item in the adjustment clipboard, and then paste adjustments)

    3) Use Applescript to tell System Events to open Capture Ones' the Color Editor Tool and set the value of the Saturation to -80, and apply it to the variant.

    Option 2 doesn't require any Applescript, and is the way Capture One is meant to be used (swimming down river)

    Option 1 is within your powers, but I think it provides no real benefit over option 2) unless its part of an Applescript that does something else too.

    Option 3 is difficult and pointless

     

    0
  • FirstName LastName

    So basically all i want is

     

    A Helper Layer with No Saturation (Used for Dodge & Burning)

    -If i set the saturation to 0 on the Exposure "Saturation" i will still get color seeping through the previous layers.

    If i set the Color Editor "Basic" "Saturation" to -80 then that fixes the issue and i can now use the Helper Layer as a correct B/W Helper Layer.

     

    If i set the saturation to -80 in the Color Editor ( Basic tab, Saturation to -80) and then attempt to find the value altered in Script Debugger, NOTHING appears. Its basically blank and shows there has been no Adjustments made but i did indeed set "Color Editor Saturation to -80.0"

     

    Thats my problem, I cant find the appropriate Value so i can script this.

     

     

    ** AH, Im wondering if "Color Balance Master Saturation will fix this!

    I will try this command, crosses finger

     

     

    0
  • FirstName LastName

    So this works....But its not affecting Saturation of ALL layers and settings, the previous layers will show color if i adjust them

     

    tell adjustments of NewLayerBWHelper

    set saturation to -100

    end tell

     

     

    The issue is on previous layers if i alter the settings then saturation will seep through and display even if i have this "B/W-Helper" layer on top.

     

    So to fix this, I reset the layer and use the Color Editor Basic tab and set the saturation to -80

    This fixes the Issue but now i cant find the updated settings to script because it displays as not adjusted.

    0
  • FirstName LastName

    Here is an example of the issue and why i need to use the Color Editor Saturation instead of Exposure Saturation

    I have Burned areas of interest and want to add saturation to the burn layer. I adjust the saturation of "Burn" and bring it up a bit.

     

    Now Color seeps through my Top Layer that has 0 saturation for my Black and White Helper. So that is useless.

     

    If i switch to the color editor and use its saturation set to -80 it fixes the issue.

     

    Now all i need is the proper scripting code to implement.

    0
  • FirstName LastName

    0
  • www.shootmachine.co

    Color editor is not scriptable beyond a global copy paste type function of get adjustments/set adjustments. It is very complicated to make scriptable with all the params available. 

    Eric touched on a workaround - and it's what I would do - make a preset for the color editor values (called x) and have the script make layer with style x

     

    0
  • FirstName LastName

    Gotcha. I will make a “style” for that particular layer and apply that! Wooohooo.

    I really wish the Exposure Saturation would function correctly and not display color when I set it to -100 and have it set as my top layer.

    It’s a weird behavior right?

    It should dismiss all color for every layer underneath and not show any color at all.

    Anyhow, appreciate the help and now I understand that Color Editor has no Scripting capability and need to script it as a “style”

    0
  • Kassur

    That's how I handle this:

     

    tell application "Capture One 22"

    tell layers of primary variant

    -- create a new layers named Cor and Struct and set the corLayer to -100 saturation

    set corLayer to make new layer with properties {name:"Cor", kind:adjustment} at end

    set structLayer to make new layer with properties {name:"Struct", kind:adjustment} at end

    tell structLayer

    fill mask

    end tell

    tell corLayer

    fill mask

    tell adjustments of corLayer

    set saturation to -100

    end tell

    end tell

    end tell

    end tell

    0

Please sign in to leave a comment.