2.23. XControlPoint¶
2.23.1. Synopsis¶
2.23.1.1. Functions¶
- def __eq__ (rhs)
- 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.23.1.2. Properties¶
- property master_point [read-only] of BezierControlPoint or XControlPoint
2.23.2. Detailed Description¶
X-Spline control point class. Provides access to X-Spline contour control points.
- class mocha.project.XControlPoint(XControlPoint)¶
- XControlPoint.get_point_data(time[, view=View()])¶
Return type: Parameters: - time (PySide.QtCore.float) – Keyframe time.
- view (mocha.project.View) – Keyframe view.
Returns control point data by time and view.
- XControlPoint.__eq__(rhs)¶
Return type: PySide.QtCore.bool
- XControlPoint.parameter(name_components)¶
Return type: mocha.project.Parameter Parameters: name_components (list of strings) – Relative name for a requested parameter. Return type: Parameter Returns Parameter instance bound with given name path.
- XControlPoint.parameter_set([name_components=list()])¶
Return type: mocha.project.ParameterSet Parameters: name_components (list of strings) – Relative name for a requested parameter set. Return type: ParameterSet Returns ParameterSet instance 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 (PySide.QtCore.float) – Keyframe time.
- view (mocha.project.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 (PySide.QtCore.float) – Keyframe time.
- xcpd (mocha.project.XControlPointData) – keyframe data reflected in XControlPointData instance
- view (mocha.project.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 (PySide.QtCore.float) – Keyframe time.
- xcpd (mocha.project.XControlPointData) – Keyframe data reflected in XControlPointData instance
- view (mocha.project.View) – Keyframe view.
Updates keyframe data for given time and view.
- XControlPoint.master_point¶
Type: BezierControlPoint or XControlPoint Access: read-only Provides access to constraining point.