c4d.LineObject

class c4d.LineObject

Represents a Line object.

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())

The instance object class of type Oline.

Methods Signatures

LineObject.__init__(self, pcnt, scnt)

Creates a LineObject.

LineObject.Triangulate(self, regular)

Converts the line object into polygons.

LineObject.GetSegmentCount(self)

Gets the number of segments.

Inheritance

Parent Class:

Methods Documentation

LineObject.__init__(self, pcnt, scnt)

Creates a LineObject.

Parameters
  • pcnt (int) – The point count.

  • scnt (int) – The segment count.

LineObject.Triangulate(self, 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(self)

Gets the number of segments.

Return type

int

Returns

The number of elements in the segments array.