Archive for the 'Everydot' Category

Barrie, North Dakota

Monday, September 19th, 2011


Barrie, North Dakota, originally uploaded by afiler.

Coburn, North Dakota

Monday, September 19th, 2011


Coburn, North Dakota, originally uploaded by afiler.

Alice, North Dakota

Monday, September 19th, 2011


Alice, North Dakota, originally uploaded by afiler.

Lightroom Lua Shell

Monday, September 12th, 2011

I’ve just written a quick lua shell plugin for Lightroom, mostly to help me write other plugins, but I think it will also be an easy way to manipulate photo metadata. Writing it was pretty easy, though my one frustration was that the Lightroom plugin API does not appear to provide a way to make scrollable dialogs, so the output view will fill up and have to be cleared. The famous Lightroom plugin writer Jeffrey Friedl appears to have solved this by writing his own scrollbar widgets, so I may have to do that eventually.

To get the code/plugin (I’ve left the Lua uncompiled), head to https://github.com/afiler/luashell.lrdevplugin.

Pre-loaded extras provided in the shell environment include:

  • catalog => LrApplication.activeCatalog()
  • target => LrApplication.activeCatalog():getTargetPhoto()
  • targets => LrApplication.activeCatalog():getTargetPhotos()

Of course, you can still call import() just as you would inside a plugin.

Note that commands that would normally need to be called asynchronously (within an LrTask) are silently wrapped, so that:
x = target:getRawMetadata(‘fileSize’)
becomes:
LrTasks.startAsyncTask(function() x = target:getRawMetadata(‘fileSize’)) end)
Note that in the result window, normal return values are prefixed by “->”, while asynchronous return values are prefixed by “=>”.

Webster, North Dakota

Thursday, September 8th, 2011


Webster, North Dakota, originally uploaded by afiler.

Lakewood Park, North Dakota

Thursday, September 8th, 2011


Lakewood Park, North Dakota, originally uploaded by afiler.

Deerheart Lodge, North Dakota

Thursday, September 8th, 2011


Deerheart Lodge, North Dakota, originally uploaded by afiler.

Darby, North Dakota

Thursday, September 8th, 2011


Darby, North Dakota, originally uploaded by afiler.

Kelly, North Dakota

Thursday, September 8th, 2011


Kelly, North Dakota, originally uploaded by afiler.

Forward, Saskatchewan

Wednesday, August 24th, 2011


Forward, Saskatchewan, originally uploaded by afiler.