Author Topic: xap:Rating tag gets corrupted/out of sync by/with Lightroom  (Read 9624 times)

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
xap:Rating tag gets corrupted/out of sync by/with Lightroom
« on: April 03, 2010, 10:18:15 PM »
I'm running 4.6.3 on Mac 10.6.3. I'm trying to develop a workflow with Lightroom that allows me to use PM for captioning but using LR for selects and rating.

When I set a rating for an image in LR a xap:Rating tag is set in the XML file. Assume I set a rating of 2, that is respected by PM fine, so I add a caption and read that into the Lightroom via a manual reading of the metadata in the XML.

Now, here's where the problem starts. Suppose I now want to set the rating of that image to zero. LR does this by deleting the xap tag rather than setting it to zero: <xap:Rating>0</xap:Rating>

When PM reads the XMP file it sees no xap tag but that it has a value of 2
<photomechanic:Prefs>0:0:2:002579</photomechanic:Prefs>
which was what it saw before the rating was changed to zero in LR.

This means that the rating stays at 2 in PM when it's been set to zero in LR. Since LR deletes the xap tag completely rather than setting it to zero PM doesn't know. To solve this...
2 proposed workarounds:
1. PM stops using its own Prefs setting so there's always a <xap:Rating>0</xap:Rating> in the XML file. If LR deletes it, PM will recreate it and set it to zero; or

2. Add a preference setting that essentially says:
"Assume xap:rating=0 if xap:tag is not present"

Have I got this correct? Is there a workaround or am I doing something wrong?
Thanks.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: xap:Rating tag gets corrupted/out of sync by/with Lightroom
« Reply #1 on: April 03, 2010, 11:09:50 PM »
I'm running 4.6.3 on Mac 10.6.3. I'm trying to develop a workflow with Lightroom that allows me to use PM for captioning but using LR for selects and rating.

When I set a rating for an image in LR a xap:Rating tag is set in the XML file. Assume I set a rating of 2, that is respected by PM fine, so I add a caption and read that into the Lightroom via a manual reading of the metadata in the XML.

Now, here's where the problem starts. Suppose I now want to set the rating of that image to zero. LR does this by deleting the xap tag rather than setting it to zero: <xap:Rating>0</xap:Rating>

When PM reads the XMP file it sees no xap tag but that it has a value of 2
<photomechanic:Prefs>0:0:2:002579</photomechanic:Prefs>
which was what it saw before the rating was changed to zero in LR.

This means that the rating stays at 2 in PM when it's been set to zero in LR. Since LR deletes the xap tag completely rather than setting it to zero PM doesn't know. To solve this...
2 proposed workarounds:
1. PM stops using its own Prefs setting so there's always a <xap:Rating>0</xap:Rating> in the XML file. If LR deletes it, PM will recreate it and set it to zero; or

2. Add a preference setting that essentially says:
"Assume xap:rating=0 if xap:tag is not present"

Have I got this correct? Is there a workaround or am I doing something wrong?

Sounds reasonable.  We'll need to address that.

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: xap:Rating tag gets corrupted/out of sync by/with Lightroom
« Reply #2 on: April 04, 2010, 12:57:56 AM »
Thanks Kirk - let me know if you need any testing.

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: xap:Rating tag gets corrupted/out of sync by/with Lightroom
« Reply #3 on: May 13, 2010, 04:24:19 PM »
...

Sounds reasonable.  We'll need to address that.

-Kirk


Hi Kirk - just seeing if this was changed/incorporated in 4.6.4

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: xap:Rating tag gets corrupted/out of sync by/with Lightroom
« Reply #4 on: May 13, 2010, 04:29:51 PM »
...

Sounds reasonable.  We'll need to address that.

-Kirk


Hi Kirk - just seeing if this was changed/incorporated in 4.6.4

No, sorry.  It wasn't implemented.  I'll put it on the list for the next version.

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: xap:Rating tag gets corrupted/out of sync by/with Lightroom
« Reply #5 on: July 10, 2010, 12:44:50 AM »
Hi Kirk - just seeing if this change made it into 4.6.5

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: xap:Rating tag gets corrupted/out of sync by/with Lightroom
« Reply #6 on: July 10, 2010, 08:38:36 AM »
Hi Kirk - just seeing if this change made it into 4.6.5

No.  It didn't.  There is a similar issue with the xap:Label field as well.  I'm not sure when we'll address both of them.

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: xap:Rating tag gets corrupted/out of sync by/with Lightroom
« Reply #7 on: March 31, 2012, 06:26:58 PM »
Hi Kirk - just seeing if this has been introduced into the current version of PM.
Syd

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: xap:Rating tag gets corrupted/out of sync by/with Lightroom
« Reply #8 on: April 02, 2012, 06:48:10 AM »
Syd,

Hi Kirk - just seeing if this has been introduced into the current version of PM.

PM 4.6.9 has no such change.  Version 5 is where new development is happening.  I don't know what the exact status of this issue is on V5 at this time.

-Kirk