Creates a texture bitmap object for the chosen shader record. Brings up dialog to choose the image file. Returns nil if user clicked Cancel or if the shader is not an image-based shader.
FUNCTION CreateTextureBitmapN(shaderRecord : HANDLE): HANDLE;def vs.CreateTextureBitmapN(shaderRecord):
return HANDLE| Name | Type | Description |
|---|---|---|
| shaderRecord | HANDLE | Handle to shader record. |
BEGIN
textureBitmap := CreateTextureBitmapN(shaderRecord);
SetTexBitRepHoriz(textureBitmap, FALSE);
SetTexBitRepVert(textureBitmap, FALSE);
IF textureBitmap <> NIL THEN
BEGINimport vs
# Creates a texture bitmap object for the chosen shader record.
shaderRecord = vs.GetObject('MyRecord') # handle to a record format
objHandle = vs.CreateTextureBitmapN(shaderRecord)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from VectorWorks10.1