VS:GetDropShadowData

From Vectorworks Developer
Revision as of 13:19, 22 February 2021 by Ptr (Talk | contribs)

Jump to: navigation, search

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

Description

FUNCTION GetDropShadowData(
h  :HANDLE;
VAR nUnits  :INTEGER;
VAR dOffset  :REAL;
VAR dBlurRadius  :REAL;
VAR dAngle  :REAL;
VAR nOpacity  :INTEGER;
VAR colorRV  :INTEGER;
VAR colorGV  :INTEGER;
VAR colorBV  :INTEGER) : BOOLEAN;
def vs.GetDropShadowData(h):
    return (BOOLEAN, nUnits, dOffset, dBlurRadius, dAngle, nOpacity, colorRV, colorGV, colorBV)

Parameters

h HANDLE
nUnits INTEGER
dOffset REAL
dBlurRadius REAL
dAngle REAL
nOpacity INTEGER
colorRV INTEGER
colorGV INTEGER
colorBV INTEGER

Remarks

Ptr [2021.02.22]: The RGB values out of this call return pretty strange values ranging from -32640 to 32639.

To get them converted to RGB255 values, use:

if colorRV > 0:
	colorR = colorRV / 257
else:
	colorR = (colorRV + 65536) / 257

Version

Availability: from Vectorworks 2017
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox