Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.06 KB

File metadata and controls

40 lines (32 loc) · 1.06 KB

GetOpacityN

FUNCTION GetOpacityN(
				h                  : HANDLE;
				VAR outPenOpacity  : INTEGER;
				VAR outFillOpacity : INTEGER): Boolean;
def vs.GetOpacityN(h):
    return (Boolean, outPenOpacity, outFillOpacity)

Parameters

Name Type Description
h HANDLE Object handle to get the opacity values.
outPenOpacity INTEGER Output parameter. Return the object's pen opacity as percentage value in range [0-100].
outFillOpacity INTEGER Output parameter. Return the object's fill opacity as percentage value in range [0-100].

Examples

status := GetOpacityN(pluginH, penOpacity, fillOpacity);
status := SetOpacityN(cloudH, penOpacity, fillOpacity);
import vs

h = vs.FSActLayer()  # handle to the first selected object on the active layer

ok, outPenOpacity, outFillOpacity = vs.GetOpacityN(h)
vs.Message('GetOpacityN returned: ' + str((ok, outPenOpacity, outFillOpacity)))

Version

Availability: from Vectorworks 2017

Category