Gets the origin point of the fill.
Note: only works with 2D objects that have a gradient or image fill.
PROCEDURE GetFillOriginPoint(
objectHandle : HANDLE;
VAR xOriginPoint : REAL;
VAR yOriginPoint : REAL);def vs.GetFillOriginPoint(objectHandle):
return (xOriginPoint, yOriginPoint)| Name | Type | Description |
|---|---|---|
| objectHandle | HANDLE | Handle to the object with fill. |
| xOriginPoint | REAL | X coordinate of origin point. |
| yOriginPoint | REAL | Y coordinate of origin point. |
GetFillOriginPoint(objectHandle, xOrigin, yOrigin);xIAxis, yIAxis = vs.GetFillOriginPoint(vs.FSActLayer())GetFillOriginPoint(objectHandle, 1.0, 2.0);import vs
# Gets the origin point of the fill.
objectHandle = vs.FSActLayer() # handle to the first selected object on the active layer
xOriginPoint, yOriginPoint = vs.GetFillOriginPoint(objectHandle)
vs.Message('GetFillOriginPoint returned: ' + str((xOriginPoint, yOriginPoint)))Availability: from VectorWorks10.0