c4d.PointObject

This is an abstract baseclass.

Members

PointObject.GetPointH()

Return the hidden points.

Return type: BaseSelect
Returns: The hidden points.
PointObject.GetPointS()

Return the selected points.

Return type: BaseSelect
Returns: The selected points.
PointObject.GetPoint(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: Vector
Returns: The position of the point.
PointObject.SetPoint(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 (Vector) – The position of the point.
Raises IndexError:
 

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

PointObject.GetAllPoints()

Return all point positions.

Return type: list of Vector
Returns: The list of positions.
PointObject.SetAllPoints(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()

Return the number of points.

Return type: int
Returns: The number of points.
PointObject.CalcVertexmap(modifier)

Get an array of vertex weights.

Parameters: modifier (BaseObject) – The modifier object.
Return type: list of floats
Returns: The list of weights or None if failed.
PointObject.ResizeObject(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.

Table Of Contents