color, averagecolor, rgb, scriptless, script-less, scripted, step, view, stepview

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()

Step

GetAve...rName

Parameters

This method does not take parameters

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

Variable

averageColor

GetAve...rName

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227