c4d.HandleInfo

Members

HandleInfo.position

The current handle position.

Type: Vector

HandleInfo.direction

The normal used for the handle travel. For linear handle constraints it is the line on which a handle can travel. For planar and radial constraints it is the normal of the plane/disc. Otherwise it is not needed.

Type: Vector

HandleInfo.center

Handle constraint center, for radial and spherical handle constraints.

Type: Vector

HandleInfo.radius

Handle constraint radius, for radial and spherical handle constraints.

Type: float

HandleInfo.type

Handle constraint type. One of these types:

HANDLECONSTRAINTTYPE_INVALID Invalid
HANDLECONSTRAINTTYPE_LINEAR Linear
HANDLECONSTRAINTTYPE_PLANAR Planar
HANDLECONSTRAINTTYPE_FREE Free
HANDLECONSTRAINTTYPE_RADIAL Radial
HANDLECONSTRAINTTYPE_SPHERICAL Spherical
HandleInfo.__init__()

Constructor.

HandleInfo.CalculateNewPosition(bd, mg, mouse_pos)

Calculates a handle position for a given mouse position.

Parameters:
  • bd (BaseDraw) – The active viewport.
  • mg (Matrix) – The global matrix of the handle’s parent object.
  • mouse_pos (Vector) – The mouse coordinates for which to calculate the handle position.
Return type:

Vector

Returns:

The new handle position.

Table Of Contents