Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.39 KB

File metadata and controls

55 lines (41 loc) · 1.39 KB

GetTexSpaceKind

Description

Function GetTexSpaceKind returns the object type for texture mapping space.

Table - Texture Mapping Spaces

Date Style Constant
Plane 0
Sphere 1
Cylinder 2
Algorithmic 3
FUNCTION GetTexSpaceKind(textureSpace : HANDLE): INTEGER;
def vs.GetTexSpaceKind(textureSpace):
    return INTEGER

Parameters

Name Type Description
textureSpace HANDLE Handle to texture space.

Remarks

_c_, (2018.12.29) Use GetTexMapIntN instead.

Returns the kind of the texture mapping space; 0 = Plane space, 1 = Sphere, 2 = Cylinder, and 3 = Algorithmic (Perimeter or Roof)

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

Examples

tmpInt := GetTexSpaceKind( wallTextureSpace );
SetTexSpaceKind( objTextureSpace, tmpInt);
import vs

# Function GetTexSpaceKind returns the object type for texture mapping space.
textureSpace = vs.FSActLayer()  # handle to the first selected object on the active layer

resultN = vs.GetTexSpaceKind(textureSpace)
vs.Message('GetTexSpaceKind returned: ' + str(resultN))

Version

Availability: from VectorWorks 8.0

Category