Skip to main content
Adobe Photoshop Family

4.5K Messages

 • 

76.3K Points

Tue, Sep 13, 2011 11:42 PM

Lightroom SDK: stack ops

1st choice would be a complete set of stack ops, but my present need is just to be able to expand a stack so a photo can be selected that's under another. Another solution to my immediate need (and some others) would be to have the 'setSelectedPhotos' method always expand stacks as necessary *and* make active whatever source is needed to make the specified photo(s) selected (at least as an option...).

16

Responses

15.1K Messages

 • 

195.8K Points

9 years ago

What do you mean by "stack ops"? What full list of APIs would you like to see supported on stacks?

4.5K Messages

 • 

76.3K Points

Hi Chris, how's 'bout:

- Create Stack
- Delete Stack (remove all from stack)
- Set Stack Position (for photo already in stack)
- Insert in stack at position (e.g. top, by index, bottom, ...)
- Remove from stack
- Expand stack (and optionally select all).
- Collapse stack
- Put stack in a new blank temporary collection, and expand.
- Put stack in the quick collection (or present target collection)...

Get the idea? - perhaps this list could be consolidated and optimized, but the general idea is to be able to do anything and everything to a stack from a plugin.

Bonus Ideas:
- the ability to name stacks and have a photo be in more than one stack.
- be able to define stack types and tie different actions to different stack types.

Thanks,
Rob

161 Messages

 • 

3.2K Points

For my needs (batch stacking bracketed photos and ability for external programs to find panoramas), most important ops would be put specified photos in a stack, and remove specified photos from a stack

161 Messages

 • 

3.2K Points

5 years ago

This reply was created from a merged topic originally titled Lightroom: allow plugins to create stacks.

It'd be great if the API gave access to stacks. I'd like to be able to use panorama, and HDR programs that automatically determine groups of images to be able to group those images in to a stack. Examples: Autopano pro by Kolor lets you find the panoramas automatically. Photomatix batch processing also automagically finds the bracketed sets. Since the built in autostack by capture time doesn't work for all situations, it seems a prime opportunity to let plugins do this autostacking.

4.5K Messages

 • 

76.3K Points

3 years ago

This reply was created from a merged topic originally titled Lightroom SDK: Support stack position changes..

At present, a plugin can only set the stack position when adding a photo to the catalog. I would also like to be able to alter stack-position after the fact, for a variety of reasons, including plugin synchronization of proprietary xmp-like info, i.e. if plugin has saved proprietary xmp-like file, which includes stack position, that info can be applied to the catalog by plugin, including stack-position.

7 Messages

 • 

194 Points

3 years ago

My +1 for that feature. I'm developing the plugin [0] to find duplicates and stacking them is the most obvious and native way to group photos within the single collection. Ability to manage stacks from SDK would really improve UX in my case.
Thanks.

[0] https://github.com/teran/deduplicator

1 Message

 • 

62 Points

a year ago

I need this feature for my HDR workflow. I stack every HDR series. But the time stack tool isn that perfect. Merge to much or less pictures, so I need to check every stack again.
I simply want 0/-/+1 HDR Stacking. Could simply develop a script for myself, but I can't stack the founded images in a stack because of missing SDK methods.

Rob Cole already make good suggestions of the required features. You have nearly all of them already in the context menu. Just open them to the SDK. Thanks!

90 Messages

 • 

1.6K Points

5 months ago

I will also revive this 9 year old topic and add my +1

In addition, or most important to me, would be the possibility to have a photo/photos selected and get their stack and then all photos inside this stack via Lua. 

It is a real bummer that there doesn't seem to be a way to get stack information via script.

If someone knows a way for the functionality above, please feel free to let me know.

I think if Adobe made an effort to open up the scripting possibilities a bit more (maybe even introducing other languages) their product palette would greatly increase in value for professional production. Some of the subscription money could be spent there instead of changing old and working features into buggy tools ;)

Take care,
Dziga

Champion

 • 

5K Messages

 • 

91.6K Points

5 months ago

The SDK does provides stacking information for folders but not for collections, but it won't let you modify stacking. See the documentation for these keys to photo:getRawMetadata(): countStackInFolderMembers, stackInFoldermembers, isInStackInFolder, stckInFolderIsCollapsed, stackPositionInFolder, topOfStackInFolderContainingPhoto.

Champion

 • 

5K Messages

 • 

91.6K Points

5 months ago

"I think if Adobe made an effort to open up the scripting possibilities a bit more (maybe even introducing other languages) their product palette would greatly increase in value for professional production. Some of the subscription money could be spent there instead of changing old and working features into buggy tools ;)"

Absolutely agree. But since LR 4, Adobe has put very little effort into the SDK. There are many feature requests on this forum to provide inexplicably missing SDK features that would significantly enhance the capabilities of plugins.

90 Messages

 • 

1.6K Points

5 months ago

Thank you! That might come in very handy.

For now, lacking this information, I worked around it by creating a collection for the panorama images first and then retrieving the collection and then all member photos from my selection.

I actually didn't know LR writes stacking information into the metadata but that explains why simple grouping/stacking takes so long on houndreds of files and torments the drive they are on. ^¬^

Champion

 • 

5K Messages

 • 

91.6K Points

5 months ago

"I actually didn't know LR writes stacking information into the metadata but that explains why simple grouping/stacking takes so long on houndreds of files and torments the drive they are on."

The stacking gets written to the catalog file but not to the metadata stored inside photo files or their sidecars.  So something else is tormenting your disks.

90 Messages

 • 

1.6K Points

Ah, I misunderstood then. I also see right now that it's actually not tormenting the drive when stacking but LR takes a very long time writing the info to the database. I am gonna open a new thread for this, though, to find out if this can be optimized somehow:) Thanks for your help so far!