SDK LR publishServiceProvider.getRatingsFromPublishedCollection () - no reference to publishedCollection

I'm about to implement support for "get sides of Collection published the" and "Comments on the published Photos" in my service provider (for photostable of Synology) to publish. Whereas the implementation of this feature is quite simple, I'm in trouble with the configuration of this option. Given that the process of obtaining of sides on a remote server could be quite time-death especially for large (> 1,000 photos) collection in my scenario, I want to make this configurable feature by published Collection. That's what suggests also the code provider to publish Flickr example.

Unfortunately, the following hooks do not give me a reference for the parameters of publischedCollection or of respective publishedCollection, but only for the Service to publish settings:

  1. publishServiceProvider.addCommentToPublishedPhoto (publishSettings, remotePhotoId, commentText)
  2. publishServiceProvider.canAddCommentsToService (publishSettings)
  3. publishServiceProvider.getCommentsFromPublishedCollection (publishSettings, arrayOfPhotoInfo, commentCallback)
  4. publishServiceProvider.getRatingsFromPublishedCollection (publishSettings, arrayOfPhotoInfo, ratingCallback)

In the case 1, 3 and 4 I could try to get the parameters collection via up to the container of the published photos collection, but this can lead to a collection of false, because the photo may contain several collections published, each with different settings.

So I think basically two ways to do:

  1. Highlight option in the Service to publish settings
  2. redefine the remoteId of the publishedPhoto available to include the Collections owned localId published via exportSession:recordRemoteCollectionId(remoteId)

Option 1 is not very sexy or intuitive, since it requires that the two Services to publish different being completely identical except the comment and rating option supported. Hmm

Option 2 would make the incompatible plugin back: If you decide to upgrade to this new version of the plugin, it is not easy way back, because the old version would not understand the new format of the published photo remoteId.

I'm missing the point or certain features without papers? How would the suggested example of Flickr?

It works!

processRenderedPhotos()

...

render: recordPublishedPhotoUrl (tostring (publishedCollection.localIdentifier))

...

getCommentsFromPublishedCollection()

...

publishedCollection = LrApplication.activeCatalog (): getPublishedCollectionByLocalIdentifier (tonumber (arrayOfPho toInfo [1] .url))
If it is publishedCollection:getCollectionInfoSummary (). collectionSettings.enableComments then
   return

end

Thanks for fruitful discussions!

Martin

Tags: Photoshop Lightroom

Similar Questions

  • LR SDK: publishServiceProvider.getCommentsFromPublishedCollection () - documentation error

    I am currently working on the support to the comments to my post supplier (for Synology's photostable), which is essentially done by the three hooks:

    • publishServiceProvider.getCommentsFromPublishedCollection)
    • publishServiceProvider.addCommentToPublishedPhoto)
    • publishServiceProvider.canAddCommentsToService)

    While the implementation is simple, I had trouble getting the comments posted in the comments Panel: I could see the number of comments, but not the comments themselves. In addition to the system became really unstable and reload the plugin does not work correctly. Instead, I had to restart Lr loaded each time to get the code changes.

    I took a few hours until I have finally realized that the documentation and the sample of Flickr are mistaken on the use of the comment callback function. Instead of:

    commentCallback {publishedPhoto = photoInfo, comments = commentList}

    It must be:

    commentCallback ({publishedPhoto = photoInfo, comments = commentList})

    This all happened in Lr 6.3 / Windows 7.

    I suspect that the documentation and code samples for:

    • publishServiceProvider.getRatingsFromPublishedCollection ():

    ratingCallback {publishedPhoto = photoInfo, side = rating}

    should also be replaced with:

    ratingCallback ({publishedPhoto = photoInfo, side = rating})

    Not yet tested, however.

    Can someone confirm my observation?

    Martin

    Hmm, in Lua, 'f {a}' is syntactically equivalent 'f ({a}).  So there is no difference between these two lines:

    commentCallback {publishedPhoto = photoInfo, comments = commentList}

    commentCallback ({publishedPhoto = photoInfo, comments = commentList})


    Are you really sure that what makes a change represents the difference in behavior?

  • Symbols and reference

    It's really two questions. I've looked everywhere to try to find how to manipulate symbols in Illustrator by using CSSDK.

    First of all, I don't know how to do a simple task of something like the hiding and showing layers in a symbol. So that all instances of symbols reflect the change.

    Second, I don't know where to find the documentation to help me understand it on my own.

    Is there something there?

    (I just want to clarify, it's using CSSDK, I'm not using the illustrator interface, but an extension of coding)

    Do you use the Extension Builder? If so you can get help by selecting help > help in Eclipse contents. In particular, you can get the entire Illustrator CSAW QAnywhere library by going to the Adobe Creative Suite Extension Builder > references > CSAW Library API Reference > com.adobe.illustrator.

    If you do not have Extension Builder then you can also find QAnywhere CSAW libraries to http://cssdk.host.adobe.com/sdk/1.5/docs/WebHelp/references/csawlib/index.html

    You can also find the Illustrator scripting guide of specific interest: http://cssdk.host.adobe.com/sdk/1.5/docs/WebHelp/app_notes/illustrator.htm (also in the help pages E.B.), in particular the overview of the script object model.

    Usually, you can do almost anything with the CSAW libraries that you can do with libraries Extendscript, and the code is roughly the same (at least all interaction with the DOM should be essentially the same) - in this case, you might be better to ask in the forum script Illustrator and then porting all code ExtendScript people give you to ActionScript. I don't know if you can change the layers of a symbol - I couln can't see any obvious way to do something other than deletion and symbols in a script of duplication, but I have not done much Illustrator script, so as I said, I'll try to ask in the forum script Illustrator instead.

    Hope that helps,

    Louis

  • Apply the shift via the script

    Hello

    from Toon Boom, I have many animations frame by frame vectored in the form of PDF files that need to be converted to SVG.

    Using an Illustrator script I found on the web, it is no big deal.

    This is the script:

    /**********************************************************
    
    
    ADOBE SYSTEMS INCORPORATED 
    Copyright 2005-2010 Adobe Systems Incorporated 
    All Rights Reserved 
    
    
    NOTICE:  Adobe permits you to use, modify, and 
    distribute this file in accordance with the terms
    of the Adobe license agreement accompanying it.  
    If you have received this file from a source 
    other than Adobe, then your use, modification,
    or distribution of it requires the prior 
    written permission of Adobe. 
    
    
    *********************************************************/
    
    
    /**********************************************************
    
    Save as SVGs.jsx
    
    
    DESCRIPTION
    
    
    This sample gets files specified by the user from the 
    selected folder and batch processes them and saves them 
    as SVGs in the user desired destination with the same 
    file name.
    
    
    Based on Adobe's "Save as PDFs" sample script, intended for Illustrator CS6
    
    **********************************************************/
    
    
    // Main Code [Execution of script begins here]
    
    
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    
    
    var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, svgSaveOpts;
    
    
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to SVG', '~' );
    
    
    // If a valid folder is selected
    if ( sourceFolder != null )
    {
      files = new Array();
      fileType = prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', '*.pdf' );
    
      // Get all files matching the pattern
      files = sourceFolder.getFiles( fileType );
    
      if ( files.length > 0 )
      {
      // Get the destination to save the files
      destFolder = sourceFolder;
      for ( i = 0; i < files.length; i++ )
      {
      sourceDoc = app.open(files[i]); // returns the document object
    
      // Call function getNewName to get the name and file to save the SVG
      targetFile = getNewName();
    
      // Call function getSVGOptions get the SVGSaveOptions for the files
      svgSaveOpts = getSVGOptions( );
    
      // Save as svg
      sourceDoc.exportFile(targetFile, ExportType.SVG, svgSaveOpts );
    
    
      sourceDoc.close();
      }
      alert( 'Files are saved as SVG in ' + destFolder );
      }
      else
      {
      alert( 'No matching files found' );
      }
    }
    
    
    
    
    /*********************************************************
    
    
    getNewName: Function to get the new file name. The primary
    name is the same as the source file.
    
    
    **********************************************************/
    
    
    function getNewName()
    {
      var ext, docName, newName, saveInFile, docName;
      docName = sourceDoc.name;
      ext = '.svg'; // new extension for svg file
      newName = "";
    
      for ( var i = 0 ; docName[i] != "." ; i++ )
      {
      newName += docName[i];
      }
      newName += ext; // full svg name of the file
    
      // Create a file object to save the svg
      saveInFile = new File( destFolder + '/' + newName );
    
    
    
      return saveInFile;
    }
    
    
    
    
    function getSVGOptions()
    {
      var svgSaveOpts = new ExportOptionsSVG();
    
    
      //just using defaults aside from what's written below
      //see http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/references/csawlib/com/adobe/illustrator/ExportOptionsSVG.html
    
      svgSaveOpts.embedRasterImages = true;
    
      return svgSaveOpts;
    }
    

    Due to some other issues, I am currently for any compensation my graphics using the object > path > offset in Illustrator and assigning a value of 0.001 mm.

    I thought that it is the simplest solution, and after that, the graphics are perfectly fine.

    The problem is that it is not only a few simple graphics, but animations with often more than 200 images (which would mean 200 PDF files to edit).

    It manually all would be almost impossible.

    So I'm wondering if there isn't a way to add the offset command to the script, so all of my PDF files have been applied all offset by being converted into SVG.

    Would it be possible (I'm really hoping so)?

    I just need a way to automate that. An action recording can be useful for some images, but I think rather in a batch operation.

    Thank you!

    but you can use actions on a lot!

    Use the 'batch' option in the drop down palette menu actions. It allows you to perform an action on a folder of files.

  • Where to start with Web Services

    We run an ESXi 5 environment with a server for vSphere and are eager to develop a system to be able to create virtual machines.

    I came across the site of the developers of VMware and was very happy to find the vSphere Web Services SDK and wanted to know where to start?

    Y at - it software or settings that must be enabled on the vSphere server or ESXi hosts to allow the use of the SDK?  I downloaded the SDK and trying to connect and have had no success yet, and here the possibility that something is not missing on the server.

    Will there be sites level introduction, articles or tutorials on how to start using the SDK?

    I'd appreciate any help that anyone can provide.

    Thank you

    Matt

    Hi Matt,

    Everything you need to start is available here: http://www.vmware.com/support/developer/vc-sdk/

    It has links to:

    1. the developer's Guide

    2. the Program Guide

    3. the online API reference

    4. the download of the software development kit (if you have not already had it)

    The configuration guide for developers gives you all the steps to configure your system, and how to compile the examples. I suggest you review this first and get to the point where you can run the basic example of program that connects to the ESXi host and gets a few values.

    The configuration guide for developers is divided into separate sections for Java and c#. I'm using c# and the guide was in all on-site.

    The following document to read is the vSphere Web Services SDK Programming Guide - it will help you understand all of the concepts you need for programming with the SDK. The information is presented in a generic way, but samples lean towards Java. But not to worry because the SDK c# samples are many and it is easy to cross things between the Programming Guide and a reference sampling program. This guide is very large ~ 250 pages, but you don't need to read all this, chapters 2 to 5 are what I'm focused on - they are the absolute must know things for relying on web services SDK. What follows I'd say depends on what you need to do with the SDK. A very useful reference when reading the chapters 2 to 5 is the managed object (MOB) on your ESXi host browser. It is accessible at https://your-host-url/mob. You can search the managed objects and explore their hierarchy here.

    Once you understand, I dare say that you are able to start your own program with the help of the API reference of course. In fact you may have already tried poking around with a few lines of code by reading the guide just because it is useful to understand the concepts by testing them with code.

    Also nothing should be done on the server to start to use web services SDK.

  • Problem with upload http CopyDatastoreFile_Task

    Someone at - he had CopyDatastoreFile_Task to work with a file 'to' which is HTTP based and 'to' be a data store? No matter what I try, I get an invalid parameter error.  I checked that URL is functional vCenter machine, that the destination folder exists in the data store and that I'm passing the right moref of the data center. What else could be wrong? Is it possible to diagnose which vCenter parameter is unhappy?

    Do you have an example of Java?

    Hello

    If I understand correctly, you try to download a file that is available on a local (in the form of a URL) path for a data store on ESX. The CopyDatastoreFile_Task method allows you to copy files within the virtual infrastructure of a store of data to another. This could be the reason that you see invalid parameter error, where your source is incorrect.

    To transfer a file to ESX datastore from a local path, you can use the example of ColdMigration.java, delivered with vSphere web services SDK.

    http://www.VMware.com/support/developer/VC-SDK/

    For your quick reference sample is attached.

    I hope this helps.

    Neha

  • The browser of the work

    Hi people,

    I'm just getting started with Illustrator SDK programming.  Claims AI reference functions that you can bring up a browser to work window that allows you to explore the tree of Illustrator work by pressing ALT-CTRL-SHIFT-F12.

    I'm not having any luck with this.  With the help of Illustrator CS6, Windows.  Someone at - it advice?

    Thank you!

    Unfortunately, this hidden feature is not available in CS6.

  • Name of file based on field entry

    Derived from the Adobe Acrobat SDK "Javascript for Acrobat API Reference"document: Pg 146 I was able to get the confidence function to work and save a file in a particular way with a non dynamic name. However, I have yet to understand why the document won't save the field entry I specify as filename.

    http://www.Adobe.com/content/dam/Adobe/en/DevNet/Acrobat/PDFs/js_api_reference.PDF

    Example of 146 1 PG

    The Javascript function of confidence recorded in the Acrobat apps folder:

    mySaveAs = app.trustPropagatorFunction (function (doc, path)

    {

    app.beginPriv ();

    myDoc = event.target var;

    myDoc.saveAs (path);

    app.endPriv ();

    })

    myTrustedSpecialTaskFunc = app.trustedFunction (function (doc, path)

    {

    Privileged and non-privileged code above

    app.beginPriv ();

    mySaveAs (doc, path);

    app.endPriv ();

    Privileged and non-privileged code below

    });

    JavaScript code that I have on my button click:

    xfa.resolveNode ("RA");

    myTrustedSpecialTaskFunc (this, "/ c/temp /" + RA + ".pdf");

    It returns a file saved with the name of: [object XFAObject] .pdf in the folder specified above.

    The Javascript code in the Adobe sample is:

    myTrustedSpecialTaskFunc (this, "/ c/temp/mySavedDoc.pdf");

    This returns a pdf file in the specified folder with a file name of "mySavedDoc.pdf".

    I use MS XP with Adobe LiveCycle Designer ES2 and Adobe Acrobat X Pro

    myTrustedSpecialTaskFunc (this, "/ c/temp /" + RA.rawValue + ".pdf");

    Kyle

  • Closed event for inDesign Application

    I want to call a method disconnect from session chanelset in the event of closure of the inDesign application, but am unable to follow the inDesign application close event, can anyone suggest me on this.

    Thanks in advance.

    To listen CSXSInterface windowClose event.

    http://cssdk.host.Adobe.com/SDK/1.0/docs/Webhelp/references/csxslib/com/Adobe/CSXS/core/CS XSInterface.html #event:windowClose

    private void listen (): void

    {

    CSXSInterface.getInstance () .addEventListener (StateChangeEvent.WINDOW_CLOSE, csxsInterface_windowCloseHandler);

    }

    private void csxsInterface_windowCloseHandler(event:StateChangeEvent):void

    {

    do something;

    }

    I hope that helps!

  • How to handle events when changing the list of the artboard in Illustrator?

    It's very strange for me, but AIEvent has no type event to handle work plan list change events.

    http://cssdk.host.Adobe.com/SDK/1.5/docs/Webhelp/references/cshalib/com/Adobe/cshostadapte r/AIEvent.html

    May be there are has any ideas how to get the events of the artboard: 'Add', 'delete', 'reorder '.

    Well, the right event type is AIEvent.DOCUMENT_CROP_AREA_MODIFIED. It is very useful to play with EventWatcher distance example Creative Suite SDK examples.

  • -keep-generated-Question of actionscript compiler Option

    I am trying to learn how Actionscript works. I turned on the - Dungeon-generated-compiler actionscript option so that I could see the actionscript generated for an ItemRenderer I created.

    I must:

    1. directly modify the file generated, or

    2. use the generated file as a reference for creating my own ItemRenderer class file.

    I think, right?

    all comments appreciated!

    Thank you very much

    Mark

    You can do either, but there is ALSO the question of converters in the SDK that are

    better reference implementations.

  • Push Service SDK APi reference

    Hello

    I'll try to find the api reference for the side push service sdk server. Can someone please give me a link.

    Thank you

    Found in the BPSS folder after you have installed the SDK of the Push Service. It is under pushsdk/javadoc

  • Reference of the user goes into vCloud VcloudClient 1.5 Java SDK?

    How can I get the ReferenceType for me after I connected?  Assume I'm here:

    VcloudClient.setLogLevel(Level.OFF);
    VcloudClient client = VcloudClient.login(username, password);
    

    What I would like is to get either the UUID, or a reference for my user.  Something I could use for this code:

    User me = User.getUserById(client, userId);
    

    or

    User me = User.getUserByReference(client, userRef);
    

    I don't see any methods on VcloudClient that can happen to me...  Any help would be greatly appreciated!

    Hello

    Yes, these methods are available in the SDK 5.1

    Kind regards

    Rajesh Kamal.

  • LrPublishedCollectionInfo references in SDK docs are broken links

    Y at - it an update of the SDK documentation that explains LrPublishedCollectionInfo ?  There are several functions that relate to this guy as params, but they are all broken links and it is clear to me though it refers to LrPublishedCollection or not. Example of code seems to suggest that this is not the case.

    Some examples of the software development kit [for example, stubs for publishServiceProvider.shouldReverseSequenceForPublishedCollection ()] just deepen the confusion.

    I would really like to know what I can do with publishServiceProvider.goToPublishedCollection () and the past in "Info. " publishedCollectionInfo"param.

    Is not is it? (I'm just a wild dagger shot - I have never worked with publishing services):

    pubCollection:getCollectionInfoSummary ()
    Get a summary of information about this published collection.

    This function must be called from within an asynchronous task began to use LrTasks .

    First of all took in charge in the Lightroom SDK 3.0.

    Return value

    Table with the following information:

    • name: name of the published collection
    • localIdentifier: internal identification number of the collection (the local identifier).
    • remoteId: ID of the collection on the remote service.
    • remoteUrl: URL of the collection (if any) such that published.
    • isDefaultCollection: True (Boolean) if it is the default collection.
    • parents: (array of arrays) information on any published sets collection that contains this collection. An array of arrays, each containing name , localCollectionId , remoteCollectionId , and publishedUrl .
    • collectionSettings: (table) class-specific parameters that have been stored by the plug-in.
    • publishSettings: parameters (table) post for this plugin.
  • Support of creating content for autostereoscopic display (SDK)?

    Hi all

    as a researcher at the University, I am very interested in not only consume autostereoscopic presentations because it is supposed to be possible with the Qosmio F750 - 10M, but I am also particularly interested in the possibilities of creating stereoscopic content for these devices.

    Does anyone have experience with this?
    Is there a reference/knowledge base of this topic? There may be even not SDK published this helps connect technologies such as engines of real-time game and/or the preparation of static image?

    Perhaps another basic question that could respond indirectly to those above is: how the stereo is actually display to work? Is it essentially using only two images (one for each eye) like most other systems (i.e. shutter glasses, glasses of polar,...)? Or is it using several images, as seems to be the case in some lenticular systems?
    The number of necessary renders highly influences the ease of connection to stereo - systems, and I think that, as it might be a very different challenge to make more than 2 angles all the time...

    Thank you!

    Hello

    It seems that no one can answer your question

    This is probably because it s a user to user forum then you can only talk to normal people like you and me and this is no technician or someone from Toshiba.

    I hope someone else can give a better answer, but it takes a bit. Qosmio F750 is very new laptop model and it might take a bit longer until other people receive too.

    Alternative you can contact a service provider authorized in your country. Usually, guys should know more details on autostereoscopic. Just talking a bit with guys ;)

Maybe you are looking for

  • Reformat my computer to factory settings - HP Pavilion p6320a

    Hello Could you please help me how to reformat my computer to factory setting?  Here are the details: a. HPPavilion p6320a b. OS - Windows 7 Home 64 bit Penitum c. processor - Pentium (R) Dual Core Also is there a Posibility to convert/upgrade for Wi

  • Tecra A2 does sometimes when moving between programs

    Tecra A2 occasionally freezes and does not respond. If I end task and launch it again it works normally. Sometimes I have to restart the computer until it is fixed. It happens often when opening Outlook or Excel to Word trip. Just to uninstall the OS

  • Extreme SSD 120GB - No. TRIM support for Linux later? $150 wasted?

    I am a customer of Sandisk's long-term and generally been happy with their products. My favorite and the only OS is Linux, like the millions of PC users, laptop, Tablet and smartphone world. I'm about to take delivery of a brand new Sandisk Extreme S

  • What is msndupd.exe

    a box appears when I connect to internet msn.  It asks if I want to allow this to be done

  • Add the new Site to Site VPN

    Hello I have a connection vpn site to site with a remote site (AAS to ASA) I want to set up another on the same interface. Main site is 1.1.1.1 Remote site 1: 2.2.2.2 Main site and the remote site 1 active connection. I want to add another: Main site