The DAM Forum
Welcome, Guest. Please login or register.
August 01, 2014, 12:47:29 AM

Login with username, password and session length
Search:     Advanced search
28016 Posts in 5137 Topics by 2912 Members
Latest Member: kbroch
* Home Help Search Login Register
+  The DAM Forum
|-+  Software Discussions
| |-+  Scripting
| | |-+  Script needed to bring information from UserComment Field to Keyword field
« previous next »
Pages: [1] Print
Author Topic: Script needed to bring information from UserComment Field to Keyword field  (Read 1934 times)
Roelof
Full Member
***
Posts: 126


View Profile WWW Email
« on: February 06, 2011, 11:25:29 AM »

Hello,
With my Nikon D90 it's possible to ad some annotations in the field, while photographing. These information, stored in the camera in 'Image Comment', is (according to ExifTool) stored in the ExifIFD field 'UserComment' (see screenshot).
http://www.box.net/shared/rl36m9quqd

I can not do anything with this information so the question is, can i move/copy this information into the Keyword or another (IPTC) field?
I'm using Bridge and EM2
Roelof
Logged
johnbeardy
Administrator
Hero Member
*****
Posts: 1813


View Profile WWW
« Reply #1 on: February 06, 2011, 12:17:57 PM »

Roelof

Can you find that information in the Advanced view of Bridge's File Info panel? If so a Bridge script could copy it.

There might also be ways to copy using Exiftool, though the documentation ( http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#copying_examples ) is a bit heavy-going.

John
Logged
Roelof
Full Member
***
Posts: 126


View Profile WWW Email
« Reply #2 on: February 06, 2011, 03:49:05 PM »

Hello John,

Yes, in bridge the info can be found in 'File Info' under Tab 'Advanced', section 'Schema (http://ns.adobe.dom/exif/1.0/), subsection 'exif:UserComment (see screenshot http://www.box.net/shared/px9p88hr67).

Indeed I did take a look of the exiftool examples but i'm no developer and this is to heavy for me...
Roelof
Logged
johnbeardy
Administrator
Hero Member
*****
Posts: 1813


View Profile WWW
« Reply #3 on: February 07, 2011, 02:09:35 AM »

OK, then have you modified any of my scripts? The filename to title one should be ideal. Essentially for each thumbnail there's a pair of commands, each of which sets the namespace before either getting or setting a field value. In this case, if you write to keywords you may have to insert a comma or semi-colon. A little trick is to use a line " alert(md.caption) ; " which would show the caption in a dialog box (don't have too many images in the folder when this is in your code).

I must admit, I've known about Exiftool for ages but was scared away by the documentation until I really needed it and then I got into some very obscure corners (thanks Roger Howard if you're reading).

John
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!