Returns true if object has the specified partID custom texture part.
FUNCTION CustomTexPartExists(
obj : HANDLE;
partID : LONGINT): BOOLEAN;def vs.CustomTexPartExists(obj, partID):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| obj | HANDLE | Object handle |
| partID | LONGINT | Custom texture part ID, ex: 100. |
hasPart := CustomTexturePartExists(h, 100);resultOK := CustomTexPartExists(obj, 1);import vs
# Returns true if object has the specified partID custom texture part.
obj = vs.FSActLayer() # handle to the first selected object on the active layer
partID = 1
ok = vs.CustomTexPartExists(obj, partID)
if ok:
vs.Message('CustomTexPartExists succeeded')
else:
vs.Message('CustomTexPartExists failed')Availability: from Vectorworks 2017