Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 724 Bytes

File metadata and controls

37 lines (29 loc) · 724 Bytes

GetObjMaterialName

FUNCTION GetObjMaterialName(
				h                : HANDLE;
				VAR materialName : STRING): BOOLEAN;
def vs.GetObjMaterialName(h):
    return (BOOLEAN, materialName)

Parameters

Name Type Description
h HANDLE
materialName STRING

Examples

resultOK := GetObjMaterialName(h, 'Example');
import vs

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

ok, materialName = vs.GetObjMaterialName(h)
vs.Message('GetObjMaterialName returned: ' + str((ok, materialName)))

Version

Availability: from Vectorworks 2021

Category