Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.22 KB

File metadata and controls

46 lines (36 loc) · 1.22 KB

GetObjExpandTexture

Description

Function GetObjExpandTexture returns whether the referenced objects' textures have been "expanded". When a texture is expanded, different components of an object can have different textures.

FUNCTION GetObjExpandTexture(obj : HANDLE): BOOLEAN;
def vs.GetObjExpandTexture(obj):
    return BOOLEAN

Parameters

Name Type Description
obj HANDLE Handle to object.

Remarks

This function returns true if the object's textures are expanded. For example, if the object is a wall and this function returns true then there are three distinct textures applied to the left, center, and right polygons.

Examples

if ( NOT GetObjExpandTexture( wallHand ) ) then
	wallPartID := 0;
import vs

# Function GetObjExpandTexture returns whether the referenced objects'
# textures have been "expanded".
obj = vs.FSActLayer()  # handle to the first selected object on the active layer

ok = vs.GetObjExpandTexture(obj)
if ok:
    vs.Message('GetObjExpandTexture succeeded')
else:
    vs.Message('GetObjExpandTexture failed')

Version

Availability: from VectorWorks8.0

Category