Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 838 Bytes

File metadata and controls

38 lines (30 loc) · 838 Bytes

SetMaterialTexture

FUNCTION SetMaterialTexture(
				VAR materialHandle : HANDLE;
				textureIndex       : LONGINT): BOOLEAN;
def vs.SetMaterialTexture(materialHandle, textureIndex):
    return (BOOLEAN, materialHandle)

Parameters

Name Type Description
materialHandle HANDLE
textureIndex LONGINT

Examples

resultOK := SetMaterialTexture(materialHandle, 1);
import vs

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

ok, materialHandle = vs.SetMaterialTexture(materialHandle, textureIndex)
vs.Message('SetMaterialTexture returned: ' + str((ok, materialHandle)))

Version

Availability: from Vectorworks 2021

Category