Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.28 KB

File metadata and controls

46 lines (35 loc) · 1.28 KB

GetOpacityByClass

Description

Returns whether the object is using the class opacity.

PROCEDURE GetOpacityByClass(
				h             : HANDLE;
				VAR isByClass : BOOLEAN);
def vs.GetOpacityByClass(h):
    return isByClass

Parameters

Name Type Description
h HANDLE The object which opacity will be get.
isByClass BOOLEAN Output parameter. Returns TRUE if this object's opacity is determined by its class.

Remarks

If you set opacity to an object inside parametric the actual opacity will be combined with the opacity of the parametric object itself. For example a rectangle with 50% opacity inside a parametric with 50% opacity will actually be rendered with 25% opacity. This behavior is the same for symbols too.

Examples

GetOpacityByClass(h, TRUE);
import vs

# Returns whether the object is using the class opacity.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

result = vs.GetOpacityByClass(h)

See Also

GetOpacity | SetOpacity | GetOpacityByClass | SetOpacityByClass

Version

Availability: from VectorWorks13.0

Category