Replacing camera raw metadata with a script
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?
