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

Description:

Add a set of photos to the project by a path to the directory and optionally add a camera based on the first photo in the set.

Syntax:

"AddPhotos createCamera pathToPhotoDirectory

where:

createCamera is 1 to create, 0 to not create a camera based on the first photo in the directory.

pathToPhotoDirectory is a path to a directory containing the photos (full path, can contain spaces).

Return:

"1" if  successful or "0" if not.

Failure returns

- invalid path to a directory

- duplicate camera based on that first photo

 

Example:

"AddPhotos 1 c:\temp\projectPhotos"

return: "1"