Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.33 KB

File metadata and controls

52 lines (39 loc) · 1.33 KB

GetTexSpacePartID

Description

Function GetTexSpacePartID returns the parent of the referenced texture space in an expanded object (walls or roofs).

Table - Texture Space Objects

Object Constant
Primary 0
Secondary 1
Tertiary 2
FUNCTION GetTexSpacePartID(textureSpace : HANDLE): INTEGER;
def vs.GetTexSpacePartID(textureSpace):
    return INTEGER

Parameters

Name Type Description
textureSpace HANDLE Handle to texture space.

Remarks

Returns which part (0 = Primary, 1 = Secondary, 2 = Tertiary) of the object this space belongs to (for expanded walls and roofs).

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

Examples

resultN := GetTexSpacePartID(textureSpace);
import vs

# Function GetTexSpacePartID returns the parent of the referenced texture
# space in an expanded object (walls or roofs).
textureSpace = vs.FSActLayer()  # handle to the first selected object on the active layer

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

Version

Availability: from VectorWorks 8.0

Category