Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.34 KB

File metadata and controls

53 lines (42 loc) · 1.34 KB

GetMtlFillBackColor

Description

Returns the fill background color of the specified material. The color is returned as the RGB components of the color. RGB values are in the range of 0~65535.

PROCEDURE GetMtlFillBackColor(
				material  : HANDLE;
				VAR red   : LONGINT;
				VAR green : LONGINT;
				VAR blue  : LONGINT);
def vs.GetMtlFillBackColor(material):
    return (red, green, blue)

Parameters

Name Type Description
material HANDLE Handle to material.
red LONGINT Returns RGB color component (red).
green LONGINT Returns RGB color component (green).
blue LONGINT Returns RGB color component (blue).

Remarks

Returns the fill background color of the material in parameters colorRV, colorGV, and colorBV.

Examples

GetMtlFillBackColor(mtlHandle,cRed,cGrn,cBlu);
RGBToColorIndex(cRed,cGrn,cBlu,colorValue);
GetMtlFillBackColor(material, 1, 2, 3);
import vs

# Returns the fill background color of the specified material.
material = vs.FSActLayer()  # handle to the first selected object on the active layer

red, green, blue = vs.GetMtlFillBackColor(material)
vs.Message('GetMtlFillBackColor returned: ' + str((red, green, blue)))

Version

Availability: from Vectorworks 2021

Category