2.3. BezierControlPoint¶
2.3.1. Synopsis¶
2.3.1.1. Functions¶
def
__eq__
(rhs)def
get_master_point
()def
get_point_data
(time[, view=View()])def
parameter
(name_components)def
parameter_set
([name_components=list()])def
remove
()def
set_master_point
(arg__1[, time=0.f[, view=View(0)[, lock_tangents=false]]])def
set_point_data
(time, bcpd[, view=View()])def
update_point_data
(time, bcpd[, view=View()])
2.3.1.2. Properties¶
property
master_point
[read-only] ofBezierControlPoint
orXControlPoint
property
psets
[read-only] of ParameterSet
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
PyObject
-
BezierControlPoint.
get_point_data
(time[, view=View()])¶ - Return type
- Parameters
time (float) – Keyframe time.
view (
mocha.project.View
) – Keyframe view.
Returns control point data by time and view.
-
BezierControlPoint.
__eq__
(rhs)¶ - Return type
bool
-
BezierControlPoint.
parameter
(name_components)¶ - Return type
- 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
- 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 (
mocha.project.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 (
mocha.project.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 (
mocha.project.View
) – Keyframe view.
Updates keyframe data for given time and view.
-
BezierControlPoint.
master_point
¶ - Type
- Access
read-only Provides access to constraining point.
Set None value to break the constraint.
-
BezierControlPoint.
psets
¶ - Type
- Access
read-only Provides access to the root parameter set.
Mimics parameter_set() call.