PreviousNext
Help > Programming PhotoModeler - Scripting/DDE Interface > Commands > ShowPhoto
ShowPhoto

Description:

Opens a photo with the ID specified in PhotoModeler in a certain view type

Syntax:

“ShowPhoto photoID viewStyle”

where:

photoID is the ID of the photo to open, viewStyle is either 0 for a new photo window, 1 for replace active photo, or 2 for tab with active photo.

Return:

“1” if successful, orĀ  "0" if not successful.

Failure returns

- insufficient number of parameters

- no project is open

- photo 'ID' does not exist in project

Example:

"ShowPhoto 1 1"

return “1”