Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.01 KB

File metadata and controls

47 lines (38 loc) · 1.01 KB

AddCustomTexPart

PROCEDURE AddCustomTexPart(
				obj      : HANDLE;
				partID   : LONGINT;
				partName : STRING);
def vs.AddCustomTexPart(obj, partID, partName):
    return None

Parameters

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.

Examples

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 object

Version

Available version: Vectorworks 2017

Category