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

Description:

Add a camera by the path to the .cam file.

Syntax:

“AddCameraByCamFile setDefault pathToCamFile

where:

setDefault sets whether camera is to be the default or not

pathToCamFile is path of the cam file on disk  - can include spaces.  The .cam file is defined from within PhotoModeler’s Camera Viewer Dialog where it can be saved to disk.

Return:

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

Failure returns

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

Example:

"AddCameraByCamFile 1 c:\temp\camera.cam"

return "1"