FUNCTION GetObjMaterialName(
h : HANDLE;
VAR materialName : STRING): BOOLEAN;def vs.GetObjMaterialName(h):
return (BOOLEAN, materialName)| Name | Type | Description |
|---|---|---|
| h | HANDLE | |
| materialName | STRING |
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)))Availability: from Vectorworks 2021