How make for the image path full output for recorder/console

Hi all

I'm just starting getting my hands dirty with the lr sdk and could do with a little guidance.

For a part of a plugin, I need to retrieve the path complete to each image, and well I can achieve what I want I fight to print the path to the console log / and can not understand why.

Here is a snippit of code to illustrate things:

for photo in exportSession:photosToExport() do 

     filename = photo:getFormattedMetadata( "fileName" )
     outputToLog( filename )  -- Works as expected
     folderName = photo:getFormattedMetadata( "folderName" ) 
     outputToLog( folderName )  -- Works as expected


     local path = LrPathUtils.standardizePath(photo:getRawMetadata("path"))
     outputToLog( path ) -- Output is always blank


     -- and yet when passed to exiftool the path is correct and works as expected

     LrTasks.execute("exiftool  -Copyright=\"Imaginary person\" \""..path.."\"")



end

Basically, I can get the path and use them as part of a command, exiftool, but cannot work, how the path to the log console to output debugging purposes. Am I missing something simple, or is it a voluntary limitation?

Any help much appreciated.

I don't know what the problem is. What camera you're out in?

i.e. have you tried logger: enable ("logfile") - that works for me in OSX to save to a file.

Here is the code I use:

Self.Logger = LrLogger (logName)

function local logToFile (msg)

local f = io.open (self.logFilePath, 'a')

If f is nil then

Debug.pause ('failed to open log file', self.logFilePath)

return

end

f: Write (LrDate.timeToUserFormat (LrDate.currentTime (), "%-% m-% d % H: % m: %s"), "", msg, "\n" ' ")

f: Close)

end

If self.verbose then

-self.logger:enable ("logfile") - check all in the log file.

Self.Logger:Enable (logToFile)

on the other

local = {}

-debug output is removed when you don't sign in details

trace = logToFile,

Info = logToFile,

warn = logToFile,

error = logToFile,

fatal = logToFile,.

}

Self.Logger:Enable (interventions) - remove trace & debug.

end

R

Tags: Photoshop Lightroom

Similar Questions

  • How to download the image at full resolution that was purchased?

    My downloaded client 2, high resolution image files which now reside in a folder he created in his library. He tried to send me these files so I can use them on the Web site that I design for him using the "share" feature However, once I got this email, there is no way to download files high resolution original. My client then gave me his account details then, if all goes well, I might get a direct access to this folder that cost him. But even connected it doesn't seem to be a way to download the file on my computer. How can I do this? It shouldn't really be that difficult to do.

    Kurt

    Looks like you're not properly downloading image. Follow the steps described in this guide: I bought licenses for images, but no download option.

  • How to change the default path for documents and settings

    How to change the default path for documents and settings

    I try to change in the registry, but the profile can create but error! had no choice to change the default path % lecteur_systeme % d: /.

    Hello

    I suggest you to download TweakUI, this could help you or get you headed in the right direction
    http://Windows.Microsoft.com/en-us/Windows/downloads/Windows-XP

    Also this KB could help as well:
    http://support.Microsoft.com/kb/236621

    It will be useful.

  • How to rotate the image in movie maker a few degrees to get it exactly horizontal

    If my camera was slightly off level during recording, how I rotate the image a few degrees in Movie Maker to get this level

    I found a copy of 1.9.2.

    Excellent

    Wayne

  • How to check the image source for the image which is losted?

    Hello world

    How to check the image source for the image which is losted?

    If the image source already exists, I can read the PlaceItem.file.fsName.

    But if remove the image of the source, read the PlaceItem.file.fsName will report the error: there is no file associated with this element

    Thank you

    If (app.documents.length > 0) {}

    var sourceDoc = app.activeDocument;

    sourceName = sourceDoc.name var;

    artItem =]

    for (i = 0; i < sourceDoc.pageItems.length; i ++) {}

    artItem [i] = sourceDoc.pageItems [i];

    If (.) TypeName artItem [i] == 'PlacedItem') {}

    If (.imageColorSpace [i] artItem == undefined) {}

    Alert ("the file is the link, but I don't know whether or not the source image is losted");

    }

    }

    }

    }

    Use try/catch to catch the error

    if (app.documents.length > 0) {
        var sourceDoc = app.activeDocument;
        var sourceName = sourceDoc.name;
        artItem = []
        for (i = 0; i < sourceDoc.pageItems.length; i++) {
            artItem[i] = sourceDoc.pageItems[i];
            if (artItem[i].typename == 'PlacedItem') {
                if (artItem[i].imageColorSpace == undefined) {
                    try {
                        var fname = artItem[i].file.name;
                        alert("file name: " + fname);
                    }
                    catch (e) {
                        alert("The file is linking ,but source image is lost");
                    }
                }
            }
        }
    }
    
  • Parallax scrolling - how can we achieve image background full page on the homepage?

    Hello

    I made the link between muse adobe much. I was wondering how can we achieve image background full page on the homepage.

    something like: http://www.theqcamera.com/

    I can scale 100% width and height, but it keep the size and weight (Act something like reagent), I think we should do something with scale to fill... but can't really understand how, there is no specific width and height of the box, I have to take to get this effect?

    Thank you in advance.

    Hello

    You can use rectangles on the page and apply fill scroll to items, maintain the dimension of identical objects or on the content. You can also insert other elements like the rectangle text between images.

    Something like in this video:

    https://www.YouTube.com/watch?v=8m2Lg241e3A

    Thank you

    Sanjit

  • Forms 6i: how to get the UNC path? SOLVED

    Anyone know how to get the UNC path of in Oracle Forms 6i

    For example, if the user enters an output file:
    j:\Data.txt

    How I translated that UNC path:
    \\serv-123\cfs\data.txt

    Basically, I need to pass the UNC path to a regular DB procedure that later would be to copy an output file at the location specified by the user. "J:" being a network drive mapped, the database server would not be able to copy the file.

    Thank you
    Jim

    It's perhaps easier: read the registry using WIN_API_ENVIRONMENT. READ_REGISTRY. The key is HKEY_CURRENT_USER\NETWORK\\RemotePath.

  • If anyone can help with how to get the image

    a database in a view using Dreamweaver page?

    I have a page with a recordset and a database with text and images. The image field has a link to the file and the image as in /images/image1.jpg including the size.

    The thumbnail I want to display on a page of the main display is in the database using varchar with a link like /images/image1.jpg

    When someone wants to see the master page, they click on a link and everything which has been entered showing the database. At least everything except the image.  Right now it shows just /images/image1.jpg

    I don't know how to call the images to the database.

    Thanks for the help and information.

    conch,

    Check the entry of the database, and you may also have too many tags...

    In addition, check to see if your pictures folder is in the root directory, such as an incorrect path can complicate things.

    If this site is located on a remote server, feel free to send me the link here or by e-mail: [email protected]

    In addition, if you have a screenshot, it would be useful.

    Hang on!

    See you soon,.

    wordman

  • How to change the Image the Image (8 bit) (32 bit)?

    Dear all,

    I have a question about VISION.

    An Image from IMAQ USB Grab Acquire.vi is 32-bit, even if the IMAQ Creat.vi has the type U8 value.
    But the more IMAQ vi (for example IMAQ get LCD ROI.vi) can only deal with 8-bit Image.
    How to change the Image from 32-bit to 8-bit Image?
    Thank you!

    Hugo

    Hi Hugo,.

    You use a color camera? coz usually 32 bit for a color image.

    If so, you can try the unique color Pane.vi extract to extract its Luminance component. It then becomes an 8-bit grayscale image.

    Zheng OR AE

  • How to see the Images in the project of addiction?

    Hi all

    I have two projects, one dependent on the other, I did a project in the project library, and the other as a CLDC Application. I have some images stored in the library project, and I want to access that images of the CLDC Application. I don't know how to access the images by hint which way. Any body know the solution please help me.

    Thank you and best regards,

    Rajapandian.K

    I had to help someone with something similar to this:

    http://supportforums.BlackBerry.com/T5/Java-development/how-can-I-place-resources-in-a-separate-cod/...

    You can add an extra function so that she gets the EncodedImage and returns.

    In fact, I just realized that EncodedImage.getEncodedImageResource has support for the specification of the module that contains the resource.

  • How to change the image field captures screenshots automatically from BMP to JPEG

    How to change the image field captures screenshots automatically from BMP to JPEG

    I want to say, when I tap on the screenshot on my keyboard and paste this image in microsoft photo editor or picasa 3.0 areas of the bitmap .bmp. instead of asking the witch I´d field prefer.
    So, I open that image on the brush to convert it to. JPEG.
    It's hick very!
    is it possible to easily me this step and save or paste pictures in JPEG on my files automatically?

    Hello

    I saw that article when I was looking for one that I posted...

    I understand your problem, and the answer is that, to the best of my knowledge... NO..

    Windows records the capture in memory as bitmap, along with, even if you can paste it directly into a folder, it would be in the form of bitmap...

    The best I could find is to use the suggestion in the link I've included which refers to the

    Windows Key + PrintScreen to automatically record is in PNG format in your pictures folder...

    The only way to do what you want is with a 3rd party capture program that can be configured to save in a directory as a specific file type...

    Personally, I use a program called print screen Deluxe for this... it is a purchased program...

    I'm sure you could find something free to do what you need...

    You may need to use a different key for print screen, but the software can allow you to reprogram the PrntScrn key...

  • How to put the image inside the image of the desktop

    Hi team,

    I'm on MAC and I wonder if you could please help by telling step-by-step how to insert the image inside the desktop image in Photoshop. Thank you much in advance.

    Basically what you are looking for, it's transform freely. I hope this video helps.

  • How to keep the original path?

    How will keep the original path after conversion to describe stroke. Sometimes, but I don't know why?

    If the path has a fill it will be the path for the filling as well as the contours of the race. For closed paths that is.

  • How to disable the image previews

    In the windows client there is an option to disable the image previews with

    Tools-> Options-> settings IM-> Show advanced options. Uncheck the option: "show images in conversations".

    In the client Mac there isn't this option. How to disable the image previews in a Mac client?

    OK, found the solution in another thread here: http://community.skype.com/t5/Mac/YouTube-thumbnails-amp-link-previews-Why-don ' t-I-see-them/m-p/39692...

    Menu bar-> display-> display Images-> uncheck

  • How to rotate the image only once

    Hai, I am very new in the development of blackberry applications. I need an image that need to be done rotate 360 degrees once only. I see so many references here and I know that there is a thread that discuss it, but I can't find the right one.

    Thanks in advance.

    You asked a single rotation - "how to rotate the image only once.

    There is no standard API that provides a rotating image permanently using standard features of BlackBerry.

    The usual way to display animations is demonstrated in this article.

    http://supportforums.BlackBerry.com/T5/Java-development/display-an-animated-GIF/Ta-p/445014

    If you can prepare your animation and package with your application, it will be much easier and more effective. Do you know what pictures you're going to turn?

Maybe you are looking for