CurrentModel Property
Runtime Only
Applies To
Vision Objects: ColorMatch, ImageOp
Description
Sets / returns the current model index to change the teaching and model names.
Usage
VGet Sequence.Object.CurrentModel, var
VSet Sequence.Object.CurrentModel, value
- Sequence
- Name of a sequence or string variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name .
- The object must exist in the specified sequence.
- var
- Integer variable that will contain the value of the property.
- value
- Integer value or expression for the new value of the property.
Values
Integer number from 1 to the NumberOfModels result value.
Remarks
Use the CurrentModel property to set the current model index for teaching and for setting the names of color models.
For example, the following code sets the color and the name of model 2:
VSet seq1.ColorMatch01.CurrentModel, 2
VSet seq1.ColorMatch01.ModelColor, &Hff0000
VSet seq1.ColorMatch01.ModelName, "Red"
See Also
NumberOfModels Property, ColorMatch Object, ImageOp Object, ModelColor Property