ScriptInterface:CreateShape(filled, behindNeighborStrokes, frame, checkForBadShapes, skipDuplicateStrokes, skipFill, skipLine)

Version added: before 9.5

Creates a shape based on the currently selected vector points

ArgumentTypeDescriptionDefaultVer
filledboolTrue to create a filled shape, false to create an outline only< 9.5
behindNeighborStrokesboolfalse< 9.5
frameint32Frame number to create the shape at-1000000< 9.5
checkForBadShapesboolTrue to first do extra testing for "bad" or illegal shapestrue< 9.5
skipDuplicateStrokesboolfalse< 9.5
skipFillboolfalse< 9.5
skipLineboolfalse< 9.5

Return type (int32): id number of the new shape

Creates a shape based on the currently selected vector points. Not all shapes are "legal" (for example, non-closed fill shapes), so if this function fails it will return -1.
String "CreateShape" is found in the following scripts:

HSV colour picker (by hayasidist)

Paint Bucket + (by Danfield)

MR Path (by eugenebabich)

SS - Multi Layer Transform Points (by simplsam)

HS Shape (by hayasidist)

See all...