Skip to main content
areohbee
Legend
June 17, 2013

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

  • June 17, 2013
  • 20 replies
  • 648 views

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 has been closed for replies.

20 replies

areohbee
areohbeeAuthor
Legend
August 14, 2013
Knock-knock (anybody home?)...
areohbee
areohbeeAuthor
Legend
July 29, 2013
Replies here not making it through your spam filter, Paul?
areohbee
areohbeeAuthor
Legend
July 19, 2013
Paul - you still alive?
areohbee
areohbeeAuthor
Legend
July 11, 2013
Paul,

Have you been able to run the test plugin?

Rob
areohbee
areohbeeAuthor
Legend
July 1, 2013
Have you been able to try the test plugin? (link is in the post below)
areohbee
areohbeeAuthor
Legend
June 25, 2013
Test plugin here:

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

Thanks,
Rob
Adobe Employee
June 24, 2013
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
areohbee
areohbeeAuthor
Legend
June 21, 2013
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
areohbee
areohbeeAuthor
Legend
June 21, 2013
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
Adobe Employee
June 21, 2013
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.