1 Reply Latest reply on May 31, 2012 9:23 PM by areohbee

    Renditions not being generated?

    ZionGates

      I can see the progress bar as if it is rendering but the images are not there.

      What am I doing wrong? This is a snippet of my code.

       

       

       

       

       

          local exportSettings = {
                              LR_format = "JPEG",
                              LR_export_colorSpace = "RGB",
                              LR_export_useSubfolder = false,
                              LR_jpeg_quality = 100,
                              LR_size_resolution = 72,
                              LR_size_resolutionUnits = "inch",
                              LR_outputSharpeningOn = false,
                              LR_export_destinationType = "desktop",
                              LR_export_destinationPathPrefix = dest,
                              LR_collisionHandling = "skip",
                              LR_extensionCase = "lowercase",
                              LR_tokens = {{image_originalName_number_suffix}},
               }


               local params =  {
                                        photosToExport = targets,
                                        exportSettings = exportSettings
                                    }
               local ex = LrExportSession(params)
      ex:doExportOnCurrentTask()


      for i, rendition in ex:renditions() do
              local status, other = rendition:waitForRender()
         

        

      LrDialogs.message(rendition.destinationPath)
          end