## Commands for Lines

createBezierLine(...)
  `createBezierLine(list, ["name"]) -> string`

  Creates a new bezier curve and returns its name. The points for the bezier curve are stored in the list "list" in the following order: [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] In the points list, x and y mean the x and y coordinates of the point and kx and ky meaning the control point for the curve. The coordinates are given in the current measurement units of the document (see UNIT constants). "name" should be a unique identifier for the object because you need this name for further access to that object. If "name" is not given Scribus will create one for you.

  May raise NameExistsError if you explicitly pass a name that's already used. May raise ValueError if an insufficient number of points is passed or if the number of values passed don't group into points without leftovers.

createLine(...)
  `createLine(x1, y1, x2, y2, ["name"]) -> string`

  Creates a new line from the point(x1, y1) to the point(x2, y2) and returns its name. The coordinates are given in the current measurement unit of the document (see UNIT constants). "name" should be a unique identifier for the object because you need this name for further access to that object. If "name" is not given Scribus will create one for you.

  May raise NameExistsError if you explicitly pass a name that's already used.

createPolyLine(...)
  `createPolyLine(list, ["name"]) -> string`

  Creates a new polyline and returns its name. The points for the polyline are stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. The coordinates are given in the current measurement units of the document (see UNIT constants). "name" should be a unique identifier for the object because you need this name for further access to that object. If "name" is not given Scribus will create one for you.

  May raise NameExistsError if you explicitly pass a name that's already used. May raise ValueError if an insufficient number of points is passed or if the number of values passed don't group into points without leftovers.

getLineBlendmode(...)
  `getLineBlendmode(["name"]) -> integer`

  Returns the line blendmode of the object "name". If "name" is not given the currently selected Item is used.

getLineCap(...)
  `getLineEnd(["name"]) -> integer (see constants)`

  Returns the line cap style of the object "name". If "name" is not given the currently selected item is used. The cap types are: CAP_FLAT, CAP_ROUND, CAP_SQUARE

getLineColor(...)
  `getLineColor(["name"]) -> string`

  Returns the name of the line color of the object "name". If "name" is not given the currently selected item is used.

getLineJoin(...)
  `getLineJoin(["name"]) -> integer (see constants)`

  Returns the line join style of the object "name". If "name" is not given the currently selected item is used. The join types are: JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND

getLineShade(...)
  `getLineShade(["name"]) -> integer`

  Returns the shading value of the line color of the object "name". If "name" is not given the currently selected item is used.

getLineStyle(...)
  `getLineStyle(["name"]) -> integer (see constants)`

  Returns the line style of the object "name". If "name" is not given the currently selected item is used. Line style constants are: LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID

getLineTransparency(...)
  `getLineTransparency(["name"]) -> float`

  Returns the line transparency of the object "name". If "name" is not given the currently selected Item is used.

getLineWidth(...)
  `getLineWidth(["name"]) -> integer`

  Returns the line width of the object "name". If "name" is not given the currently selected Item is used.

setLineBlendmode(...)
  `setLineBlendmode(blendmode, ["name"])`

  Sets the line blendmode of the object "name" to blendmode is the name of one of the defined colors. If "name" is not given the currently selected item is used.

setLineTransparency(...)
  `setLineTransparency(transparency, ["name"])`

  Sets the line transparency of the object "name" to transparency is the name of one of the defined colors. If "name" is not given the currently selected item is used.

setLineCap(...)
  `setLineCap(captype, ["name"])`

  Sets the line cap style of the object "name" to the style "cap". If "name" is not given the currently selected item is used. There are predefined constants for "cap" - CAP_<type>.

setLineColor(...)
  `setLineColor("color", ["name"])`

  Sets the line color of the object "name" to the color "color". If "name" is not given the currently selected item is used.

setMultiLine(...)
  `setMultiLine("namedStyle", ["name"])`

  Sets the line style of the object "name" to the named style "namedStyle". If "name" is not given the currently selected item is used.

  May raise NotFoundError if the line style doesn't exist.

setLineJoin(...)
  `setLineJoin(join, ["name"])`

  Sets the line join style of the object "name" to the style "join". If "name" is not given the currently selected item is used. There are predefined constants for join - JOIN_<type>.

setLineShade(...)
  `setLineShade(shade, ["name"])`

  Sets the shading of the line color of the object "name" to "shade". "shade" must be an integer value in the range from 0 (lightest) to 100 (full color intensity). If "name" is not given the currently selected item is used.

  May raise ValueError if the line shade is out of bounds.

setLineStyle(...)
  `setLineStyle(style, ["name"])`

  Sets the line style of the object "name" to the style "style". If "name" is not given the currently selected item is used. There are predefined constants for "style" - LINE_<style>.

setLineWidth(...)
  `setLineWidth(width, ["name"])`

  Sets line width of the object "name" to "width". "width" must be in the range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not given the currently selected item is used.

  May raise ValueError if the line width is out of bounds.