メインコンテンツへスキップ

⚠️ Please note that this topic or post has been archived. The information contained here may no longer be accurate or up-to-date. ⚠️

New Filled Adjustment Layer - Easiest Way to Do This?

コメント

2件のコメント

  • Eric Valk
    Hi Sean
    Well you could certainly tighten up the code a bit.

    If there was property of "layer" that included mask fill you could reduce the three "working" lines to two, but I don't see such a property.


    tell application "Capture One 11"
    repeat with thisVariant in (get selected variants)
    set newLayerIndex to 1 + (count of every layer of thisVariant)
    make new layer of thisVariant with properties {name:"Filled Layer " & newLayerIndex}
    tell layer newLayerIndex of thisVariant to fill mask
    end repeat
    end tell

    or even better

    tell application "Capture One 11"
    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:"Filled Layer " & newLayerIndex}
    tell theNewLayer to fill mask
    end repeat
    end tell
    0
  • Sean Murphy
    Thanks for the code cleanup Eric! Great to see how these things can be tightened up, but at least I was correct in understanding that there wasn't a simpler line of code like you mention about a property of layer for mask fill.
    0

投稿コメントは受け付けていません。