Y2 Property
Applies To
Vision Objects: Edge, Line, LineInspector
Description
Defines the Y2 coordinate of an object where the (X2, Y2) coordinate pair defines the position of the starting point of the object.
Usage
VGet Sequence.Object.Y2, var
VSet Sequence.Object.Y2, 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
- Real variable that will contain the value of the property.
- value
- Real number or expression for the new value of the property.
Values
Min: 0
Max: Video height 1
Remarks
There are cases where the user may want to position a Point object dynamically and for that reason the Y2 property can also be set from the SPEL+ Language.
Line, LineInspector Objects:
The Y2 property is used to locate vertical position for the ending point of a Line object. This property is initially set to the ending point Y position where the user drops a newly created Line object. However, if a Point object is associated with another object in the sequence (i.e. the EndPointType property is set to another vision object and not set to 0-Screen), then the Y2 property for the Line object is automatically modified according to the associated property.
When the EndPointType property is set to 0-Screen there are two methods which can be used to move the Line object:
- Click the Line object’s label and drag the object to the position you want to place it.
- Change the X1, Y1, X2, or Y2 coordinates.
Edge Object:
The Y2 property is used to locate veritical position for the ending point of an Edge object.
See Also
Edge Object, EndPointObject Property, EndPointType Property, Line Object, LineInspector Object, X1 Property, X2 Property, Y1 Property