Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 1.39 KB

File metadata and controls

59 lines (48 loc) · 1.39 KB

GetTexMapReal

Description

Get map info for specific part of object. partID is texture part, overall is 3.

Selector: *offsetX:1 *offsetY:2 *scale2D:3 *rotate2D:4 *radius:5 *matrix mat00 through mat32: 6-17 :These values are the coefficients for the 4 row x 3 column object space to texture space 3D transform matrix. These values are changed by things like the Edit Mapping dialog.

FUNCTION GetTexMapReal(
				h        : HANDLE;
				partID   : LONGINT;
				selector : INTEGER): REAL;
def vs.GetTexMapReal(h, partID, selector):
    return REAL

Parameters

Name Type Description
h HANDLE
partID LONGINT texture part, overall is 3.
selector INTEGER offsetX:1, offsetY:2, scale2D:3, rotate2D:4, radius:5, matrix mat00 through mat32: 6-17

Examples

resultVal := GetTexMapReal(h, 1, 2);
import vs

# Get map info for specific part of object.
h = vs.FSActLayer()  # handle to the first selected object on the active layer
partID = 1
selector = 2

value = vs.GetTexMapReal(h, partID, selector)
vs.Message('GetTexMapReal returned: ' + str(value))

See Also

Version

Availability: from Vectorworks 14.0. Deprecated from Vectorworks 15.

Category