Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.46 KB

File metadata and controls

51 lines (40 loc) · 1.46 KB

GetTexSpaceOrientU

Description

Procedure GetTexSpaceOrientU returns the vector that describes the u-axis of the referenced texture (from world space to texture space).

PROCEDURE GetTexSpaceOrientU(
				textureSpace : HANDLE;
				VAR uXAxis   : REAL;
				VAR uYAxis   : REAL;
				VAR uZAxis   : REAL);
def vs.GetTexSpaceOrientU(textureSpace):
    return (uXAxis, uYAxis, uZAxis)

Parameters

Name Type Description
textureSpace HANDLE Handle to texture space.
uXAxis REAL Returns u-axis vector X component.
uYAxis REAL Returns u-axis vector Y component.
uZAxis REAL Returns u-axis vector Z component.

Remarks

Returns the vector that describes the u-axis of the texture (from world space to texture space)

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

Examples

GetTexSpaceOrientU( wallTextureSpace, xAxis, yAxis, zAxis );
import vs

# Procedure GetTexSpaceOrientU returns the vector that describes the u-axis
# of the referenced texture (from world space to texture space).
textureSpace = vs.FSActLayer()  # handle to the first selected object on the active layer

uXAxis, uYAxis, uZAxis = vs.GetTexSpaceOrientU(textureSpace)
vs.Message('GetTexSpaceOrientU returned: ' + str((uXAxis, uYAxis, uZAxis)))

Version

Availability: from VectorWorks8.0

Category