Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 751 Bytes

File metadata and controls

38 lines (30 loc) · 751 Bytes

GetMaterialTexture

FUNCTION GetMaterialTexture(objectHandle : HANDLE): LONGINT;
def vs.GetMaterialTexture(objectHandle):
    return LONGINT

Parameters

Name Type Description
objectHandle HANDLE

Examples

BEGIN
	useMaterialArchComp := TRUE;
	IF (textureByMaterial) THEN
		archCompTextureID := GetMaterialTexture(archCompMaterialH);
END
import vs

objectHandle = vs.FSActLayer()  # handle to the first selected object on the active layer

resultN = vs.GetMaterialTexture(objectHandle)
vs.Message('GetMaterialTexture returned: ' + str(resultN))

Version

Availability: from Vectorworks 2021

Category