c4d.LineObject

Note

To access the line/segment data, retrieve the line/segment tag from the object and call VariableTag.GetAllHighlevelData()/SetAllHighlevelData().
For instance, to print the line data from a line object use:
tag = op.GetTag(c4d.Tline)
if tag:
  print tag.GetAllHighlevelData()

Inheritance

Members

LineObject.__init__(pcnt, scnt)

Creates a LineObject.

Parameters:
  • pcnt (int) – The point count.
  • scnt (int) – The segment count.
Return type:

c4d.LineObject

Returns:

A line object.

LineObject.Triangulate(regular)

Converts the line object into polygons.

Parameters:regular (float) – The size of polygons to fill the inside of the line object with. Pass 0.0 to connect the contour with no filling.
Return type:c4d.PolygonObject
Returns:The created polygon object.
LineObject.GetSegmentCount()

Gets the number of segments.

Return type:int
Returns:The number of elements in the segments array.