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)| Name | Type | Description |
|---|---|---|
| textureSpace | HANDLE | Handle to texture space. |
| offsetU | REAL | Returns texture offset U component. |
| offsetV | REAL | returns texture offset V component. |
_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.
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)))Availability: from VectorWorks 8.0