Page 1 of 1

Import Metadata To Image's Detail Description Box

PostPosted: Mon Jan 28, 2013 8:07 am
by flo
Hi,

I would like to put some of the original metadata (from the acquistion tab) in the image describtion box (general tab).
Can somebody please point me in the right direction, where/how to start (should it be done while importing an image, run a separate script which extracts some data and saves it to the image, using a script, API,..)?

Thank you and happy Monday!

Re: Import Metadata To Image's Detail Description Box

PostPosted: Mon Jan 28, 2013 10:05 am
by wmoore
Hi,

We have had several requests from users who want various processes to run at import. We need to discuss the best way to expose this functionality (we'll get back to you on that).

In the meantime, I can point you at a script that does almost what you want. https://gist.github.com/4654318 as discussed here: viewtopic.php?f=16&t=920

This processes the original metadata for a list of images, looking for keys named "ChannelDescription|LUTName" and using the value to update the rendering settings.

You could update this script to instead update the description, using:

Code: Select all
img.setDescription("New Description)
img.save()


Hope that helps,

Will.

Re: Import Metadata To Image's Detail Description Box

PostPosted: Tue Jan 29, 2013 9:03 am
by flo
Thanks!