This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com

c4d.PointObject – an point object class

This is an abstract baseclass.

class c4d.PointObject

SuperClass

BaseObject

Methods

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

Return all point positions.

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

Raise if point index is out of range.

PointObject.GetPointCount()

Return the count of points.

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

Get an array of vertex weights.

Parameter: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.

Parameter:pcnt (int) – The new number of points.
Return type:bool
Returns:Success of changing the number of points.

Table Of Contents

This Page