PROCEDURE AddCustomTexPart(
obj : HANDLE;
partID : LONGINT;
partName : STRING);def vs.AddCustomTexPart(obj, partID, partName):
return None| Name | Type | Description |
|---|---|---|
| obj | HANDLE | The object to add a custom texture part to. |
| partID | LONGINT | The texture part ID. Start at 100 to avoid conflicts with existing texture parts. |
| partName | STRING | The texture part name, which will be shown in the texturing UI. |
RemoveCustomTexParts(h);
AddCustomTexPart(h, 100, ‘Stringers’);
AddCustomTexPart(h, 200, ‘Treads’);AddCustomTexPart(obj, 1, 'Example');import vs
obj = vs.FSActLayer() # handle to the first selected object on the active layer
partID = 1
partName = 'Example'
vs.AddCustomTexPart(obj, partID, partName)
newObj = vs.LNewObj() # handle to the newly created objectAvailable version: Vectorworks 2017