c4d.PointObject

This is an abstract baseclass.

Definition

class c4d. PointObject

Inheritance

Members

PointObject. GetPointH ( )

Return the hidden points.

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

Return the selected points.

Return type: c4d.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: c4d.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 ( c4d.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 ( c4d.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