Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.19 KB

File metadata and controls

47 lines (35 loc) · 1.19 KB

GetTexSpace2DScale

Description

Function GetTexSpace2DScale returns the 2D scale for the referenced texture space.

FUNCTION GetTexSpace2DScale(textureSpace : HANDLE): REAL;
def vs.GetTexSpace2DScale(textureSpace):
    return REAL

Parameters

Name Type Description
textureSpace HANDLE Handle to texture space.

Remarks

_c_ (2018 Dec. 29) Use GetTexMapRealN instead.

Gets the 2D scale for this texture space as a multiple of a default size of 1.

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

Examples

wallTextureScale := GetTexSpace2DScale( wallTextureSpace );
SetTexSpace2DScale( objTextureSpace, wallTextureScale );
import vs

# Function GetTexSpace2DScale returns the 2D scale for the referenced texture
# space.
textureSpace = vs.FSActLayer()  # handle to the first selected object on the active layer

value = vs.GetTexSpace2DScale(textureSpace)
vs.Message('GetTexSpace2DScale returned: ' + str(value))

Version

Availability: from VectorWorks 8.0

Category