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

Description:

Add a camera with a specified name to the project based on the EXIF properties of the first image in the specified path, and whether to set default.

 

 

 

Syntax:

“AddCameraFromImage pathToImageDirectory cameraName setDefault

where:

pathToImageDirectory is path of the photos on diskĀ  - cannot include spaces

cameraName is the name to assign to the camera

setDefault is 1 to set camera as default, 0 to not

Return:

"1" if successful, "0" if not successful.

Failure returns

- photo not found, camera of same name already in project.

Example:

"AddCameraFromIMage c:\temp\pics testCam 1"

return "1"