Skip to main content
Known Participant
November 7, 2020
Question

Replacing camera raw metadata with a script

  • November 7, 2020
  • 2 replies
  • 254 views

Hey there! Couldn´t find any posts on this and the documentation is a bit cryptic about this.

I´ve build a small panel for bridge with a button that should replace some metadata in the xmp files of selected thumbs. I managed to replace the camera profile for example but i´m stuck at replacing tone curves as they are more complex with sub-namespaces and all that: 

 

<crs:ToneCurvePV2012>
<rdf:Seq>
<rdf:li>0, 0</rdf:li>
<rdf:li>22, 16</rdf:li>
<rdf:li>40, 35</rdf:li>
<rdf:li>127, 127</rdf:li>
<rdf:li>224, 230</rdf:li>
<rdf:li>240, 246</rdf:li>
<rdf:li>255, 255</rdf:li>
</rdf:Seq>
</crs:ToneCurvePV2012>
<crs:ToneCurvePV2012Red>
<rdf:Seq>
<rdf:li>0, 0</rdf:li>
<rdf:li>255, 255</rdf:li>
</rdf:Seq>
</crs:ToneCurvePV2012Red>
<crs:ToneCurvePV2012Green>
<rdf:Seq>
<rdf:li>0, 0</rdf:li>
<rdf:li>255, 255</rdf:li>
</rdf:Seq>
</crs:ToneCurvePV2012Green>
<crs:ToneCurvePV2012Blue>
<rdf:Seq>
<rdf:li>0, 0</rdf:li>
<rdf:li>255, 255</rdf:li>
</rdf:Seq>
</crs:ToneCurvePV2012Blue>

The "normal" properties i managed to replace with getProperty and setProperty or removeProperties, whatever...This makes my eyes cross. Any help on this?

This topic has been closed for replies.

2 replies

Legend
November 9, 2020

You might find it easier to create some camera raw presets and use those. How do you even know what settings you want to use?

Rudolf LAuthor
Known Participant
November 9, 2020

Thanks for the answers. I'm coming from presets and want to bypass camera raw for leaving out this step. All comfortable with buttons in a cep panel with everytime the same settings.

I already figured it out myself by diving in the xmp documentation hell 🙂 

 

jbm007
Community Expert
Community Expert
November 8, 2020

Run it by Lumagraphics are resident scriptor who lurks here.