Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.35 KB

File metadata and controls

55 lines (42 loc) · 1.35 KB

SetTexSpacePartID

Description

Procedure SetTexSpacePartID sets 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
PROCEDURE SetTexSpacePartID(
				textureSpace : HANDLE;
				partID       : INTEGER);
def vs.SetTexSpacePartID(textureSpace, partID):
    return None

Parameters

Name Type Description
textureSpace HANDLE Handle to texture space.
partID INTEGER Part ID of texture space parent.

Remarks

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

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

Examples

SetTexSpacePartID(textureSpace, 1);
import vs

# Procedure SetTexSpacePartID sets 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
partID = 1

vs.SetTexSpacePartID(textureSpace, partID)

Version

Availability: from VectorWorks 8.0

Category