2.3. BezierControlPoint

2.3.1. Synopsis

2.3.1.1. Functions

2.3.1.2. Properties

2.3.2. Detailed Description

Bezier control point class. Provides access to Bezier contour control points.

class mocha.project.BezierControlPoint
BezierControlPoint.get_master_point()
Return type

object

BezierControlPoint.get_point_data(time[, view=View()])
Return type

BezierControlPointData

Parameters
  • time (float) – Keyframe time.

  • view (View) – Keyframe view.

Returns control point data by time and view.

BezierControlPoint.__eq__(rhs)
Return type

bool

BezierControlPoint.parameter(name_components)
Return type

Parameter

Parameters

name_components (list of strings) – Relative name for a requested parameter.

Returns Parameter instance bound with given name path.

BezierControlPoint.parameter_set([name_components=list()])
Return type

ParameterSet

Parameters

name_components (list of strings) – Relative name for a requested parameter set.

Returns ParameterSet instance bound with given name path. Pass an empty list [] to get access to the Bezier control point parameters set.

BezierControlPoint.remove()

Removes the this control point.

BezierControlPoint.set_master_point(arg__1[, time=0.f[, view=View(0)[, lock_tangents=false]]])
Parameters
  • time (float) – Keyframe time.

  • view (View) – Keyframe view.

  • lock_tangents (bool) – If True then Lock Tangents mode will be enabled, otherwise disabled.

Set the given point as constraining one for the point. Set None value to break the constraint.

BezierControlPoint.set_point_data(time, bcpd[, view=View()])
Parameters
  • time (float) – Keyframe time.

  • xcpd – keyframe data reflected in BezierControlPointData instance

  • view (View) – Keyframe view.

Sets keyframe data for given time and view erasing all old keyframe data.

BezierControlPoint.update_point_data(time, bcpd[, view=View()])
Parameters
  • time (float) – Keyframe time.

  • xcpd – Keyframe data reflected in BezierControlPointData instance

  • view (View) – Keyframe view.

Updates keyframe data for given time and view.

BezierControlPoint.master_point
Type

BezierControlPoint or XControlPoint

Access

read-only Provides access to constraining point.

Set None value to break the constraint.

BezierControlPoint.psets
Type

ParameterSet

Access

read-only Provides access to the root parameter set.

Mimics parameter_set() call.