get, color, average, name, rgb, scriptless, script-less, scripted, step, view, stepview

Method GetAverageColorName

Gets the name of the average color of the object. An average color is calculated by summing color values of all pixels of the object and dividing by the number of pixels

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function GetAverageColorName(
  Boolean Report [Optional]
)

Step

ZAP Object step

GetAve...rName

True

color

Report

Output Parameter

Parameters

Report (optional)

Type: Boolean

Default Value: False

Generate report for this step

Returns

Average color String

Example

VBScript

color = Application("Demo").View("DemoView").Object("DemoObject").GetAverageColorName()
'result example: SlateGray

JavaScript

var color = Application("Demo").View("DemoView").Object("DemoObject").GetAverageColorName();
// result example: SlateGray

Comment

Get average color name and save it to variable

Script-Less next step

Step

ZAP Object step

GetAve...rName

True

color

Contact Us

3150 Roswell Rd NW

Atlanta, GA, 30305, USA

(800) 795-3552