Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.02 KB

File metadata and controls

44 lines (33 loc) · 1.02 KB

GetTextureShader

Description

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

Parameters

Name Type Description
texture HANDLE Handle to texture.

Remarks

Returns LightWorks internal property ref for the shader attached to this texture.

Examples

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))

Version

GetTextureShader is obsolete as of VectorWorks9.0

Availability: from VectorWorks8.0

Category