c4d.PointObject

class c4d.PointObject

This is an abstract baseclass.

Methods Signatures

PointObject.GetPointH(self)

Return the hidden points.

PointObject.GetPointS(self)

Return the selected points.

PointObject.GetPoint(self, id)

Get the position of a point.

PointObject.SetPoint(self, id, pos)

Set the position of a point.

PointObject.GetAllPoints(self)

Return all point positions.

PointObject.SetAllPoints(self, p)

Set all points of the point object.

PointObject.GetPointCount(self)

Return the number of points.

PointObject.CalcVertexMap(self, modifier)

Get an array of vertex weights.

PointObject.ResizeObject(self, pcnt)

Changes the number of points in the point object.

Inheritance

Parent Class:

Children Classes:

Methods Documentation

PointObject.GetPointH(self)

Return the hidden points.

Return type

c4d.BaseSelect

Returns

The hidden points.

PointObject.GetPointS(self)

Return the selected points.

Return type

c4d.BaseSelect

Returns

The selected points.

PointObject.GetPoint(self, id)

Get the position of a point.

Parameters

id (int) – The point index.

Raises

IndexError – If the point index id is out of range : 0<=id<GetPointCount().

Return type

c4d.Vector

Returns

The position of the point.

PointObject.SetPoint(self, id, pos)

Set the position of a point.

Note

Call obj.Message (c4d.MSG_UPDATE) after you set all your points to update the object.

Parameters
  • id (int) – The point index.

  • pos (c4d.Vector) – The position of the point.

Raises

IndexError – If the point index id is out of range : 0<=id<GetPointCount().

PointObject.GetAllPoints(self)

Return all point positions.

Return type

list of Vector

Returns

The list of positions.

PointObject.SetAllPoints(self, p)
Set all points of the point object.
The length of the passed list object must be equal the count of points.

Note

Call obj.Message (c4d.MSG_UPDATE) after you set all your points to update the object.

Parameters

p (list of Vector) – The list of positions.

PointObject.GetPointCount(self)

Return the number of points.

Return type

int

Returns

The number of points.

PointObject.CalcVertexMap(self, modifier)

Get an array of vertex weights.

Changed in version R19.053: Previous name was CalcVertexmap (still works for backward compatibility).

Parameters

modifier (c4d.BaseObject) – The modifier object.

Return type

list of float

Returns

The list of weights, or None if failed.

PointObject.ResizeObject(self, pcnt)

Changes the number of points in the point object.

Parameters

pcnt (int) – The new number of points.

Return type

bool

Returns

Success of changing the number of points.