Math.HexColorToNumber

number Math.HexColorToNumber (

string HexValue )

Description

Returns the equivalent COLORDEF value of a hex value. A COLORDEF value is what AutoPlay Media Studio uses to define colors. Any action that allows you to set the color of an item at runtime (for example, any object's SetProperties action) accepts COLORDEF values.

Parameters

HexValue

(string) The hex value you want to convert, for example "FFFF00".

Returns

(number) The converted hex value, in COLORDEF format.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions