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

Description:

Add a photo mask to the project, for use with DSM/SmartMatch or photo texturing.  See Texture and DSM Mask image file names for information on masking

Syntax:

"AddPhotoMask photoID useForDSM useForTexture imageMaskFile"

where:

photoID is a unique identifier number for the photograph (>=1),

“useForDSM” is a boolean flag to set the mask for use with DSM, “useForTexture” is a boolean flag to set the mask for use with photo texturing, " imageMaskFile " is the name of the mask image file to be assigned to the photograph (full path, can contain spaces).

Return:

"1" if  successful or "0" if not.

Failure returns

- insufficient number of parameters

Example:

"AddPhotoMask 1 1 1 maskPhoto1.jpg"

return: "1"