Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 973 Bytes

File metadata and controls

45 lines (36 loc) · 973 Bytes

SetPlanarTransform

Description

Get planar matrix and transform polygon points.

FUNCTION SetPlanarTransform(h : HANDLE): HANDLE;
def vs.SetPlanarTransform(h):
    return HANDLE

Parameters

Name Type Description
h HANDLE

Examples

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))

Version

Availability: from Vectorworks 2016

Category