2.28. XControlPoint¶
2.28.1. Synopsis¶
2.28.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)]])def
set_point_data(time, xcpd[, view=View()])def
update_point_data(time, xcpd[, view=View()])
2.28.1.2. Properties¶
property
master_point[read-only] ofBezierControlPointorXControlPointproperty
psets[read-only] of ParameterSetproperty
selected[read-write] of bool
2.28.2. Detailed Description¶
X-Spline control point class. Provides access to X-Spline contour control points.
-
class
mocha.project.XControlPoint¶
-
XControlPoint.get_master_point()¶ - Return type
object
-
XControlPoint.get_point_data(time[, view=View()])¶ - Return type
- Parameters
time (float) – Keyframe time.
view (View) – Keyframe view.
Returns control point data by time and view.
-
XControlPoint.__eq__(rhs)¶ - Return type
bool
-
XControlPoint.parameter(name_components)¶ - Return type
- Parameters
name_components (list of strings) – Relative name for a requested parameter.
Returns
Parameterinstance bound with given name path.
-
XControlPoint.parameter_set([name_components=list()])¶ - Return type
- Parameters
name_components (list of strings) – Relative name for a requested parameter set.
Returns
ParameterSetinstance bound with given name path. Pass an empty list[]to get access to the X-Spline control point parameters set.
-
XControlPoint.remove()¶ Removes the this control point.
-
XControlPoint.set_master_point(arg__1[, time=0.f[, view=View(0)]])¶ - Parameters
time (float) – Keyframe time.
view (View) – Keyframe view.
Set the given point as constraining one for the point. Set None value to break the constraint.
-
XControlPoint.set_point_data(time, xcpd[, view=View()])¶ - Parameters
time (float) – Keyframe time.
xcpd (XControlPointData) – keyframe data reflected in XControlPointData instance
view (View) – Keyframe view.
Sets keyframe data for given time and view erasing all old keyframe data.
-
XControlPoint.update_point_data(time, xcpd[, view=View()])¶ - Parameters
time (float) – Keyframe time.
xcpd (XControlPointData) – Keyframe data reflected in XControlPointData instance
view (View) – Keyframe view.
Updates keyframe data for given time and view.
-
XControlPoint.master_point¶ - Type
- Access
read-only Provides access to constraining point.
-
XControlPoint.psets¶ - Type
- Access
read-only Provides access to the root parameter set.
Mimics parameter_set() call.
-
XControlPoint.selected¶ - Type
bool
- Access
read-write Provides access to selected state of the point.