Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

4 Commits

Folders and files

Repository files navigation

πŸŽ‰ Capture One Metadata Preset Creator

A Java command-line tool to create and edit Capture One metadata presets (.copreset files).

Your new Java project is ready to use. This tool will save you time by automating the creation of Capture One metadata presets.

πŸ“ Project Location

p:\CaptureOneMetadataPresetCreator

πŸš€ Quick Start - What You Can Do Now

Option 1: Interactive Menu (Easiest)

launcher.bat

This opens a menu where you can:

  • Create presets interactively by answering prompts
  • Edit existing presets interactively
  • Run command-line commands directly
  • Browse your Capture One presets folder
  • Get help

Option 2: Command Line

java -jar dist\capture-one-preset-creator.jar --name "My Preset" --output "my_preset.copreset" --country "Canada"

✨ Key Features

βœ… Automatic UUID Generation - Each preset gets a unique ID
βœ… Edit Existing Presets - Update selected fields while preserving other preset content
βœ… Full IPTC Support - Country, state, city, location metadata
βœ… Subject Codes - Support for IPTC subject codes
βœ… Command-Line Driven - Perfect for automation
βœ… Interactive Launcher - Easy-to-use menu
βœ… Standalone JAR - No external dependencies

🎯 First Steps

1. Test It

java -jar dist\capture-one-preset-creator.jar --help

2. Create a Test Preset

cd p:\CaptureOneMetadataPresetCreator

java -jar dist\capture-one-preset-creator.jar ^
  --name "Test Preset" ^
  --output "test.copreset" ^
  --country "Canada"

3. Install in Capture One

Copy the generated .copreset file to:

C:\Users\Ian\AppData\Local\CaptureOne\Presets60\Metadata

4. Restart Capture One

Your new preset will appear in the metadata presets menu!

πŸ”§ Building the Project

Requires Java 11+ and either Apache Ant or Maven.

Using Batch Script (Recommended)

cd p:\CaptureOneMetadataPresetCreator
build.bat

Using Maven (Alternative)

cd p:\CaptureOneMetadataPresetCreator
mvn clean package

This creates a JAR with all dependencies in target/capture-one-preset-creator.jar. The build output is placed in the dist/ directory for easy access.

πŸ“‚ Important Files

File Purpose
launcher.bat Easy interactive menu launcher 🎯
dist/capture-one-preset-creator.jar The executable application
README.md This comprehensive guide and reference
QUICKSTART.md Quick reference with examples
PRESET_TEMPLATES.md Pre-made templates for your presets
create_example_presets.bat Example of batch creation

πŸ’‘ Common Commands

Create a simple preset

java -jar dist\capture-one-preset-creator.jar -n "My Preset" -o "my.copreset"

Create with location details

java -jar dist\capture-one-preset-creator.jar ^
  -n "IPTC nature at Algonquin" ^
  -o "nature_algonquin.copreset" ^
  -c "Canada" ^
  -s "Ontario" ^
  -l "Algonquin Provincial Park"

View help

java -jar dist\capture-one-preset-creator.jar --help

❓ Frequently Asked Questions

Q: Do I need to install anything?
A: No! Java 11+ must be installed, but the JAR has all dependencies built-in.

Q: How do I add this to Capture One?
A: Copy the .copreset file to your Capture One presets folder and restart the app.

Q: Can I create multiple presets?
A: Yes! Run the command multiple times to create presets individually.

Q: What if I make a mistake?
A: Just create a new preset file - there's no limit!

Q: Can I edit existing presets?
A: Yes. Use --input to edit in place, or add --output to create an edited copy. You can also choose interactive editing in launcher.bat.

πŸ”§ Technical Details

  • Language: Java 11+
  • Build System: Apache Ant (primary) / Maven (reference)
  • Dependencies: Apache Commons CLI 1.5.0 (included in JAR)
  • Output: XML format compatible with Capture One 60+

UUID Generation

A unique UUID is automatically generated for each new preset and edited copy. In-place editing preserves the existing UUID. The UUID is:

  • Printed to console after successful creation
  • Included in the XML; newly created presets also contain a UUID comment
  • Used internally by Capture One to identify the preset

Command-Line Options Reference

Required when creating:

  • --name, -n <string> - Preset name (displayed in Capture One)
  • --output, -o <path> - Output file path (e.g., 'preset.copreset')

Optional:

  • --input <path> - Edit an existing preset; omitted fields stay unchanged
  • --interactive-edit - Edit interactively
  • --country, -c <string> - Country name
  • --state, -s <string> - State/Province name
  • --iso-country-code, -i <string> - ISO country code (e.g., 'CAN', 'USA')
  • --city, -C <string> - City name
  • --location, -l <string> - Location description
  • --category, -cat <string> - Image category
  • --content-category, -cc <string> - Content category
  • --subject-codes, -sc <string> - Subject codes in format: 20000032||0,20000035||1
  • --help, -h - Display help message

Editing presets

Edit selected fields in place, retaining the existing UUID:

java -jar dist\capture-one-preset-creator.jar --input "existing.copreset" --city "Toronto"

Create an edited copy with a new UUID, leaving the input unchanged:

java -jar dist\capture-one-preset-creator.jar --input "existing.copreset" --output "copy.copreset" --name "New name"

Explicitly passing an empty value, for example --city "", or a field name with no value, for example --city, removes that field. --state "" or --state removes both state fields. A specified output must be a different file from the input. Unsupported XML elements, attributes and comments are preserved, although XML formatting may change. The interactive editor uses Enter to keep a value and a separate confirmation to clear it.

Example Workflow

  1. Create a new preset:

    java -jar dist\capture-one-preset-creator.jar ^
      --name "IPTC nature at Baxter Park" ^
      --output "new_preset.copreset" ^
      --country "Canada" ^
      --state "Ontario" ^
      --location "Baxter Conservation Area"
  2. Copy the generated file to your Capture One presets folder

  3. Open Capture One and select your new preset from the metadata presets menu

Project Structure

CaptureOneMetadataPresetCreator/
β”œβ”€β”€ build.bat / build.sh                       # Build scripts
β”œβ”€β”€ launcher.bat                               # Interactive launcher
β”œβ”€β”€ README.md                                  # This file (comprehensive guide)
β”œβ”€β”€ QUICKSTART.md                              # Quick reference guide
β”œβ”€β”€ PRESET_TEMPLATES.md                        # Template examples
β”œβ”€β”€ PROJECT_SUMMARY.md                         # Technical summary
β”œβ”€β”€ dist/                                      # Build output
└── src/main/java/com/lesliesoftware/captureone/
    β”œβ”€β”€ PresetCreator.java                     # Main CLI application
    └── MetadataPreset.java                    # Preset data model and XML generation

Dependencies

  • Apache Commons CLI 1.5.0 - Command-line argument parsing
  • JAXB 2.3.1 - XML handling (included for Java 11+)

Installation to Capture One

After generating the .copreset file, copy it to your Capture One presets folder:

C:\Users\<YourUsername>\AppData\Local\CaptureOne\Presets60\Metadata

The preset will appear in Capture One's metadata presets menu on next restart.

πŸ†˜ Troubleshooting

"java: command not found"

"JAR not found"

  • Run setup.bat first to build the project

"Preset doesn't appear in Capture One"

  • Verify the file is in the correct folder
  • Restart Capture One
  • Check that the filename ends with .copreset

"Invalid argument" error

  • Check that your command-line arguments are properly formatted
  • Use --help to verify syntax

πŸ“ Notes

  • New presets and edited copies get a new UUID; in-place edits retain the existing UUID
  • Presets are stored as XML files
  • All generated files are standalone and can be shared
  • The tool is fast - you can create presets in seconds

πŸŽ“ Next Steps

  1. Read this README for detailed examples and reference
  2. Try launcher.bat for the interactive experience
  3. Explore PRESET_TEMPLATES.md for your existing presets
  4. Copy the .copreset files to Capture One's presets folder
  5. Restart Capture One and use your presets!

πŸŽ‰ You're all set! Enjoy creating presets programmatically!

For quick examples, see QUICKSTART.md

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages