Skip to main content
areohbee
Legend
Jun 17, 2013 8:13 AM UTC
Released

P: SDK: catalog:createVirtualCopies only works properly in grid view.

When more than one photo is selected, and more than one copy name is passed, I mean, in Windows anyway, maybe Mac too.

First off, I realize the SDK v5 has not been released, so if this bug report is premature, just ignore it.

That said, I wanted to report ASAP in the hopes that it will be fixed before SDK 5 is released, if applicable.

Problem is, plugin has no official way of assuring Lr is in grid mode. So createVirtualCopies needs to be fixed, or we need a way to force grid view, or both.

Again, my apologies in advance: I acknowledge this is an undocumented function.

Rob

This topic is closed to new replies. Start a new post to keep the conversation going.

20 replies

areohbee
areohbeeAuthor
Legend
Aug 14, 2013 11:24 AM UTC
Knock-knock (anybody home?)...
Translate
areohbee
areohbeeAuthor
Legend
Jul 29, 2013 1:24 PM UTC
Replies here not making it through your spam filter, Paul?
Translate
areohbee
areohbeeAuthor
Legend
Jul 19, 2013 11:52 AM UTC
Paul - you still alive?
Translate
areohbee
areohbeeAuthor
Legend
Jul 11, 2013 1:29 AM UTC
Paul,

Have you been able to run the test plugin?

Rob
Translate
areohbee
areohbeeAuthor
Legend
Jul 1, 2013 4:11 AM UTC
Have you been able to try the test plugin? (link is in the post below)
Translate
areohbee
areohbeeAuthor
Legend
Jun 25, 2013 1:11 PM UTC
Test plugin here:

http://www.robcole.com/LrForumSupport...

Thanks,
Rob
Translate
Participating Frequently
Jun 24, 2013 3:04 PM UTC
Rob that is not the behavior I am seeing. With multiple photos selected, I am seeing multiple virtual copies created (one for each selection) even when in loupe view. Do you have a a plug-in with the bare minimum to reproduce this issue? Some sample code may help (I realize it is a single call in question, but obviously we are doing something different so the context may be relevant.)

Thanks,

-paul
Translate
areohbee
areohbeeAuthor
Legend
Jun 21, 2013 11:58 PM UTC
Hi Paul,

Just re-checked behavior (win7/64):

catalog:createVirtualCopies( name )

In grid view, with two photos selected (for example) creates 2 virtual copies (both having the specified copy name). So far so good...

However, in loupe view or develop module, the same statement only creates one virtual copy (although it does return an array of two lr-photos, it's just that only one of them is a newly created virtual copy - the other is the original master/base copy).

Is that not how it works for you? are we comparing oranges to oranges, or apples?

Rob
Translate
areohbee
areohbeeAuthor
Legend
Jun 21, 2013 10:36 PM UTC
Hi Paul,

|> "we do not support more than one name for a virtual copy"

I was only able to get multiple copies by passing multiple names, for example:

catalog:createVirtualCopies( name1, name2, name3 )

which were indeed used as I'd hoped (but in grid view only). But perhaps I/we have been calling it wrong.

Would you mind enumerating what the parameter(s) should be?

Thanks,
Rob
Translate
Participating Frequently
Jun 21, 2013 7:55 PM UTC
Hi Rob- can you elaborate what you mean by not working properly?

I am able to create virtual copies via the SDK whether I am in grid or loupe view. The virtual copies are all created properly.

Note, we do not support more than one name for a virtual copy. All virtual copies will have the same copy name when multiple photos are selected.
Translate