FUNCTION GetObjMaterialHandle(h : HANDLE): HANDLE;def vs.GetObjMaterialHandle(h):
return HANDLE| Name | Type | Description |
|---|---|---|
| h | HANDLE | object handle |
resultH := GetObjMaterialHandle(h);import vs
h = vs.FSActLayer() # handle to the first selected object on the active layer
objHandle = vs.GetObjMaterialHandle(h)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from Vectorworks 2021