Get planar matrix and transform polygon points.
FUNCTION SetPlanarTransform(h : HANDLE): HANDLE;def vs.SetPlanarTransform(h):
return HANDLE| Name | Type | Description |
|---|---|---|
| h | HANDLE |
planRotation := GetPrefReal(93);
tempobjH := HDuplicate (pathTemplate, 0, 0);
tempobjH := SetPlanarTransform(tempobjH);
HCenter (tempobjH, x0, y0);
HMove(tempobjH, -x0, -y0);
gPluginObjH := CreateCustomObjectN (objType, x0, y0, -planRotation, FALSE);
HRotate(tempObjH, 0, 0, planRotation);import vs
# Get planar matrix and transform polygon points.
h = vs.FSActLayer() # handle to the first selected object on the active layer
objHandle = vs.SetPlanarTransform(h)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from Vectorworks 2016