Returns the last used color index in the current document.
FUNCTION NumColors : INTEGER;def vs.NumColors():
return INTEGERresultN := NumColors;import vs
# Returns the last used color index in the current document.
count = vs.NumColors()
vs.Message('NumColors returned: ' + str(count))Availability: from VectorWorks13.0