Function GetTextureShader returns the LightWorks internal property reference ID for the shader attached to the referenced texture.
FUNCTION GetTextureShader(texture : HANDLE): LONGINT;def vs.GetTextureShader(texture):
return LONGINT| Name | Type | Description |
|---|---|---|
| texture | HANDLE | Handle to texture. |
Returns LightWorks internal property ref for the shader attached to this texture.
resultN := GetTextureShader(texture);import vs
# Function GetTextureShader returns the LightWorks internal property
# reference ID for the shader attached to the referenced texture.
texture = vs.FSActLayer() # handle to the first selected object on the active layer
resultN = vs.GetTextureShader(texture)
vs.Message('GetTextureShader returned: ' + str(resultN))GetTextureShader is obsolete as of VectorWorks9.0
Availability: from VectorWorks8.0