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

Description:

Set the layer on a group of points based on their name

Syntax:

“SetLayerByName layerName n ptName”

where:

layerName is the name of an already defined layer, n is the unique id of an existing photo, and ptName is the name assigned to points on the given photo

Return:

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

Failure returns

- name if not unique

Example:

"SetLayerByName NewLayer 2 mypoint"

return “1 25”