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

Description:

Set the translate part of the project coordinate transform based on a location defined by a point or camera stations. The coordinates should be in project units (which are set during NewProject)

Syntax:

"Translate id X Y Z itemType"

where:

id is the ID of the translate item (point or camera station, see below)

X,Y,Z are the 3D coordinates of the translation point (typically 0,0,0 but it could be any known 3D location)

 

Optional:

itemType (default is point) 1 - point 2 - camera station

Return:

ReturnsĀ  "1" if successful or "0" if not

Example:

"Translate 1 0 0 0" would set up translation using point#1 at (0,0,0)

"Translate 1, 10.0 10.0 10.0 2" would set up a translation using a cam stn at (10,10,10)