Solving issue 1946: "Custom Profile Builder needs more parameters"

The new parameter list is:
1. Image file
2. Default processing profile
3. Cache path (for logging files)
4. ForFlagging (bool; true if the procparams are created for an image being simply flagged - inTrash, colors, rank)
5. F Number
6. Exposure
7. Focal length (remains the same)
8. ISO
9. Lens
10. Camera make (new)
11. Camera model (new) ... those 2 new parameters was "camera" before.
This commit is contained in:
Hombre
2013-08-18 01:44:59 +02:00
parent e966478cc3
commit 3a06e94af2
7 changed files with 43 additions and 20 deletions

View File

@@ -9,7 +9,7 @@ using System.Collections;
using System.Collections.Specialized;
#endregion
// *** Raw Therapee sample Custom Profile builder (version 2010-11-15) ***
// *** Raw Therapee sample Custom Profile builder (version 2013-08-12) ***
// WARNING: PP3 format may change in the future versions! If this happens there will probably be no automatic migration path, you'll have to adjust on your own.
// This is a sample, and therefore not supported by the RT team (just by oduis)
//
@@ -153,6 +153,13 @@ namespace RTProfilerBuilder {
// What the user selected as his base profile
string defaultProfileFilePath = args[argNo++];
// Cache directory, for any logging file
string cachePath = args[argNo++];
// True if the image is only being flagged as inTrash, rank or colorLabel but still need valid PP3 - actually not used by this script
bool forFlaggingPurpose = bool.Parse(args[argNo++], CultureInfo.InvariantCulture);
// Note that old C++ has no automatic number globalization
double fNumber = double.Parse(args[argNo++], CultureInfo.InvariantCulture);
double exposureSecs = double.Parse(args[argNo++], CultureInfo.InvariantCulture);
@@ -160,7 +167,9 @@ namespace RTProfilerBuilder {
long iso = long.Parse(args[argNo++], CultureInfo.InvariantCulture);
string lens = args[argNo++];
string camera = args[argNo++];
string cameraMake = args[argNo++];
string cameraModel = args[argNo++];
string camera = cameraMake + " " + cameraModel;
#endregion
// Read default file as basis