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

Description:

Get the parameters for a camera.

Syntax:

"GetCamera cName"

where:

cName is the unique name of the camera.

Return:

"1 f fw fh xp yp K1 K2 K3 P1 P2" if successful or "0" if not.

where:

 "f" is the camera's focal length in mm, "fw fh" are the format size in mm, "xp yp" are the principal point in mm, and "K1 K2 K3 P1 P2" are the lens distortion parameters.

Failure returns

- incorrect number of parameters

- no project is open

- 'cName' does not exist in project

Example:

"GetCamera nikon1"

returned "1 35.2 36.2 23.8 18.2 12.1 0.000023 0.000004"