Untitled
unknown
plain_text
a month ago
2.1 kB
6
No Index
tell application "Capture One" try -- Get selected variants set selectedVariants to get selected variants if (count of selectedVariants) = 0 then display dialog "No images selected." buttons {"OK"} default button 1 return end if set processedCount to 0 set skippedCount to 0 set adjustmentsSummary to "" -- Process each selected variant repeat with currentVariant in selectedVariants try tell currentVariant -- Get the current brightness value from base adjustments set currentBrightness to brightness of adjustments -- Only proceed if there's actually a brightness adjustment if currentBrightness ≠ 0 then -- Create new adjustment layer set newLayer to make new layer with properties {name:"Copied from Base Layer", kind:adjustment, opacity:100} at end -- Apply the brightness to the new layer tell newLayer tell adjustments set brightness to currentBrightness end tell -- Fill the mask so it affects the whole image fill mask end tell -- Reset brightness on the base layer tell adjustments set brightness to 0 end tell set processedCount to processedCount + 1 set adjustmentsSummary to adjustmentsSummary & "Brightness: " & currentBrightness & " moved to layer" & return else set skippedCount to skippedCount + 1 set adjustmentsSummary to adjustmentsSummary & "No brightness adjustment to move" & return end if end tell on error -- Continue with other images if one fails try set status instructions of currentVariant to "Layer Error" end try set skippedCount to skippedCount + 1 end try end repeat -- Show detailed completion message set variantCount to count of selectedVariants if processedCount > 0 then display dialog "Brightness moved to layers:" & return & return & "• Processed: " & processedCount & " images" & return & "• Skipped: " & skippedCount & " images" & return & return & "Details:" & return & adjustmentsSummary buttons {"OK"} else display dialog "No brightness adjustments found to move on any of the " & variantCount & " selected images." buttons {"OK"} end if on error errMsg display dialog "Error: " & errMsg buttons {"OK"} end try end tell
Editor is loading...