Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 996 Bytes

File metadata and controls

44 lines (33 loc) · 996 Bytes

GetTextureTransp

Description

Function GetTextureTransp returns the degree of transparency applied to the referenced texture. It is expressed as a percentage with 0 creating an opaque texture.

FUNCTION GetTextureTransp(texture : HANDLE): INTEGER;
def vs.GetTextureTransp(texture):
    return INTEGER

Parameters

Name Type Description
texture HANDLE Handle to texture.

Remarks

Percentage value - 0 equals opaque

Examples

resultN := GetTextureTransp(texture);
import vs

# Function GetTextureTransp returns the degree of transparency applied to the
# referenced texture.
texture = vs.FSActLayer()  # handle to the first selected object on the active layer

resultN = vs.GetTextureTransp(texture)
vs.Message('GetTextureTransp returned: ' + str(resultN))

Version

GetTextureTransp is obsolete as of VectorWorks9.0

Availability: from VectorWorks8.0

Category