Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Script to: Make defaults specific to camera serial number? How?

Enthusiast ,
Dec 06, 2013 Dec 06, 2013

I was trying to find a way of activating by script the preferences to activate the color profile by serial camera id.

It is just to turn on this option on bridge Camera Raw Preferences:

Edit > Camera Raw Preferences > Make defaults specific to camera serial number (to ON)

I have a contralized multi-studio color profiles calibration that are updated daily when any computer starts bridge or photoshop, and it is all done by script automatically.

It is just this line that is missing and I couldn't activate it by script.

TOPICS
Scripting
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Dec 09, 2013 Dec 09, 2013

So simple and I couldn't find it.

It is on the same folder as the xmp color profile sidecars.

File(Folder.userData + "/Adobe/CameraRaw/Defaults/Preferences.xmp");

DefaultsSpecificToSerial="True"

Solved!

Translate
Enthusiast ,
Dec 06, 2013 Dec 06, 2013

There is no mention of setting this field in the documentation, so it may be held it the binary preferences in the registry. Maybe you could examine this?

HKEY_CURRENT_USER\Software\Adobe\Camera Raw\8.0

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 09, 2013 Dec 09, 2013

So simple and I couldn't find it.

It is on the same folder as the xmp color profile sidecars.

File(Folder.userData + "/Adobe/CameraRaw/Defaults/Preferences.xmp");

DefaultsSpecificToSerial="True"

Solved!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 09, 2013 Dec 09, 2013

Hi, found it as well and here is a script to set it to true.

#target bridge

var crsPrefs = new File( Folder.userData + "/Adobe/CameraRaw/Defaults/Preferences.xmp" );

setMetadata(crsPrefs);

function setMetadata( file){

try{

if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");

  if(file.exists){

     file.open('r');

     file.encoding = "UTF8";

     file.lineFeed = "unix";

     file.open("r", "TEXT", "????");

     var xmpStr = file.read();

     file.close();

     }else{

         var xmpStr='';

         }

     var xmp = new XMPMeta( xmpStr );

   xmp.deleteProperty("http://ns.adobe.com/camera-raw-settings/1.0/", "DefaultsSpecificToSerial");

    xmp.setProperty("http://ns.adobe.com/camera-raw-settings/1.0/", "DefaultsSpecificToSerial","True");

     file.open('w');

     file.encoding = "UTF8";

     file.lineFeed = "unix";

     file.write( xmp.serialize() );

     file.close();

     }catch(e){alert(e+"-"+e.line);}

};

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 10, 2013 Dec 10, 2013
LATEST

Thanks!

I had already done it, but not using XMPMeta (done it cheating...)

But this is the right way.

Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines