/
getColor

getColor

Description

Retrieves the draw color of various elements in Shogun Post, as defined in the Preferences.

Use default to get the default color of a module when it is created. Modules draw in this color if they aren't selected and have data for the active clip.

Use selected to get the color that selected modules are drawn in.

Use primarySelected to get the color that the primary selection is drawn.

Use markerLines to get the default color of connection lines between markers, if one isn't specified.

Functional area

Data retrieval

Command syntax

Syntax

getColor selected | primarySelected | default | markerLines

Arguments

NameTypeRequiredComments
strstringyesCan be one of the following values: selected, primarySelected, default, or markerLines.
See Description above for more information about each value.

Flags

None

Return value

integer array

Examples

// Get the various element draw colors.
int $color[];
  
$color = `getColor "default"`;
print $color;
$color = `getColor "selected"`;
print $color;
$color = `getColor "primarySelected"`;
print $color;
$color = `getColor "markerLines"`;
print $color;