Skip to main content

vScriptValCreatePolyline

Create a polygon line shape from a ScriptVal based Lua table of XY point pairs An example of 2D point like elements in a Lua table would look like this: { { 0.382075787528567, 0.534720150858805 }, { 0.436349336750095, 0.490753326992875 }, { 0.486955559603984, 0.440547877640415 }, { 0.531495059415565, 0.386469304121596 }, { 0.568050230127849, 0.331244047492371 }, { 0.595285357663032, 0.277804252649087 }, { 0.612508622697929, 0.229116724236359 }, { 0.619692622456641, 0.188006456120492 } }

Core / ScriptValScriptVal
vScriptValCreatePolyline node

Parameters​

ParameterTypeDefaultDescription
LevelFloat1Overall brightness/opacity multiplier for the line.
FilterDropdownGaussianAnti-aliasing filter used to soften the line's edges: Box, Bartlett, Multi-box, or Gaussian.
Soft EdgeFloat0Additional edge softness, blended on top of the Filter setting.
WidthFloat0.01Line thickness, as a fraction of frame size.
Border WidthFloat0.0Width of an additional outline drawn around the line.
+6 more parameters
ParameterTypeDefaultDescription
Line TypeDropdownSolidDash pattern for the line: Solid, Dash, Dot, Dash Dot, or Dash Dot Dot.
Join TypeDropdownRoundCorner style where line segments meet: Bevel, Miter, or Round.
Close ShapeInteger0Connects the last point back to the first, closing the polyline into a loop.
Show DumpInteger0.0Prints the ScriptVal point table to the console each frame.
InputImage—Background image the line is drawn onto.
ScriptValScriptVal—Lua table of XY point pairs defining the polyline, e.g. { {0.38, 0.53}, {0.44, 0.49}, ... }.