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| Name | Type | Description |
|---|---|---|
| texture | HANDLE | Handle to texture. |
Percentage value - 0 equals opaque
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))GetTextureTransp is obsolete as of VectorWorks9.0
Availability: from VectorWorks8.0