VS:SetLayerTransparency

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Procedure SetLayerTransparency assigns a transparency percentage value to the active design layer. If a sheet layer is active, the procedure has no effect. The transparency value must be between 0.0 and 100.0, inclusive.

The design layer will only be imaged with transparency on systems which support it, like Quartz on the Mac. Setting the transparency to a value greater than 0, when the current transfer mode is Copy (i.e. 8, Paint mode), will also automatically change the layer transfer mode to OR (i.e. 9, Overlay). Similarly, setting the transparency to 0, when the current transfer mode is not set to Copy, will also automatically change the layer transfer mode to Copy. This is to approximately preserve the appearance of the drawing when imaging on systems that don't support transparency, like Windows.

PROCEDURE SetLayerTransparency(
transparency  :REAL);
def vs.SetLayerTransparency(transparency):
    return None

Parameters

transparency REAL

Remarks

Sets the transparency percentage of the active design layer

Valid transparency values are between 0.0 and 100.0, inclusive. This procedure may also set the layer transfer mode to approximate the given transparency on systems that don't support transparency.

Version

Availability: from VectorWorks12.0

See Also

VS Functions:

VS:CopyMode

VS Functions: [[VS:CopyMode]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox