Help with Dodge and Burn Script
Hello, wondering if this is posible, i want to add a Dodge Layer and Burn Layer via a Luma Curve in the same Script, so far i got this to work, but can't find a way to make the two layers in one go.
Thanks for any help
For Dodge Layer
tell application "Capture One 20"
tell layers of primary variant
set NewLayerDodge to make new layer with properties {name:"Dodge", kind:adjustment, opacity:50} at end
tell adjustments of NewLayerDodge
-- DEFINE VALUES FOR RGB CHANEL
tell luma curve
-- SET VALUES FOR DEFAULT (0;0) POINT
-- !! VALUES ARE DEFINED ON a 0-100 SCALE, NOT 0-255
set brightness of first curve point to 0
set amount of first curve point to 0
make new curve point with properties {brightness:48.5, amount:57.4}
-- SET VALUES FOR DEFAULT (100;100) POINT
set brightness of last curve point to 100
set amount of last curve point to 100
end tell
end tell
end tell
end tell
And for the Burn Layer
tell application "Capture One 20"
tell layers of primary variant
set NewLayerBurn to make new layer with properties {name:"Burn", kind:adjustment, opacity:50} at end
tell adjustments of NewLayerBurn
-- DEFINE VALUES FOR RGB CHANEL
tell luma curve
-- SET VALUES FOR DEFAULT (0;0) POINT
-- !! VALUES ARE DEFINED ON a 0-100 SCALE, NOT 0-255
set brightness of first curve point to 0
set amount of first curve point to 0
make new curve point with properties {brightness:57.4, amount:48.5}
-- SET VALUES FOR DEFAULT (100;100) POINT
set brightness of last curve point to 100
set amount of last curve point to 100
end tell
end tell
end tell
end tell
-
This works for me:
tell application "Capture One 21"
tell layers of primary variant
-- create a new layers named Dodge and Burn
set NewLayerDodge to make new layer with properties {name:"Dodge", kind:adjustment, opacity:50} at end
set NewLayerBurn to make new layer with properties {name:"Burn", kind:adjustment, opacity:50} at end
tell adjustments of NewLayerBurn
-- DEFINE VALUES FOR RGB CHANEL
tell luma curve
-- SET VALUES FOR DEFAULT (0;0) POINT
-- !! VALUES ARE DEFINED ON a 0-100 SCALE, NOT 0-255
set brightness of first curve point to 0
set amount of first curve point to 0
make new curve point with properties {brightness:57.4, amount:48.5}
-- SET VALUES FOR DEFAULT (100;100) POINT
set brightness of last curve point to 100
set amount of last curve point to 100
end tell
end tell
tell adjustments of NewLayerDodge
-- DEFINE VALUES FOR RGB CHANEL
tell luma curve
-- SET VALUES FOR DEFAULT (0;0) POINT
-- !! VALUES ARE DEFINED ON a 0-100 SCALE, NOT 0-255
set brightness of first curve point to 0
set amount of first curve point to 0
make new curve point with properties {brightness:48.5, amount:57.4}
-- SET VALUES FOR DEFAULT (100;100) POINT
set brightness of last curve point to 100
set amount of last curve point to 100
end tell
end tell
end tell
end tell
1 -
Wooow, thanks this works great, its going to be a time saver
0
Please sign in to leave a comment.
Comments
2 comments