Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.42 KB

File metadata and controls

52 lines (40 loc) · 1.42 KB

GetTexSpace2DOffset

Description

Procedure GetTexSpace2DOffset returns the 2D offset for the referenced texture space in real-world inches.

PROCEDURE GetTexSpace2DOffset(
				textureSpace : HANDLE;
				VAR offsetU  : REAL;
				VAR offsetV  : REAL);
def vs.GetTexSpace2DOffset(textureSpace):
    return (offsetU, offsetV)

Parameters

Name Type Description
textureSpace HANDLE Handle to texture space.
offsetU REAL Returns texture offset U component.
offsetV REAL returns texture offset V component.

Remarks

_c_, (2018.12.29) Use GetTexMapRealN instead.

Gets the 2D offset for this texture space in real-world inches.

Note: GetTexMapXXX routines replace the older GetTexSpaceXXX routines. It is recommended that all developers transition to the newer versions.

Examples

GetTexSpace2DOffset( wallTextureSpace, uOffset, vOffset );
SetTexSpace2DOffset( objTextureSpace, uOffset, vOffset );
import vs

# Procedure GetTexSpace2DOffset returns the 2D offset for the referenced
# texture space in real-world inches.
textureSpace = vs.FSActLayer()  # handle to the first selected object on the active layer

offsetU, offsetV = vs.GetTexSpace2DOffset(textureSpace)
vs.Message('GetTexSpace2DOffset returned: ' + str((offsetU, offsetV)))

Version

Availability: from VectorWorks 8.0

Category