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

Description:

Set the layer on a group of points based on a rectangular region

Syntax:

“SetLayerByRegion layerName n X1 Y1 X2 Y2”

where:

layername is the name of an already defined layer, n is the unique id of an existing photo, and the latter four parameters define a region within the given photograph. This command will bind all the points falling in the given region of the photo to the specified layer.

Return:

“1” and the number of points that had their layer set if successful, orĀ  "0" if not successful.

Example:

"SetLayerByRegion NewLayer 2 100 100 300 300"

return “1 25”