2.4. BezierControlPointData¶
2.4.1. Synopsis¶
2.4.1.2. Properties¶
property
active[read-write] of bool or NoneTypeproperty
corner[read-write] of bool or NoneTypeproperty
edge_angle_ratio[read-write] of float or NoneTypeproperty
edge_width[read-write] of float or NoneTypeproperty
handle_offset_backward[read-write] of 2-values tuple or NoneTypeproperty
handle_offset_forward[read-write] of 2-values tuple or NoneTypeproperty
x[read-write] of float or NoneTypeproperty
y[read-write] of float or NoneType
2.4.2. Detailed Description¶
BezierControlPointData class. Provides access to individual parameters for each Bezier contour control point.
-
class
mocha.project.BezierControlPointData([active=OptionalBool()[, corner=OptionalBool()[, x=OptionalFloat()[, y=OptionalFloat()[, edge_width=OptionalFloat()[, edge_angle_ratio=OptionalFloat()[, handle_offset_backward=OptionalPoint()[, handle_offset_forward=OptionalPoint()]]]]]]]])¶ - Parameters
active (
OptionalBool) – Active state of keyframe.corner (
OptionalBool) – Corner state of keyframe.x (
OptionalFloat) – X coordinate value of keyframe.y (
OptionalFloat) – Y coordinate value of keyframe.edge_width (
OptionalFloat) – Edge width of keyframe.edge_angle_ratio (
OptionalFloat) – Edge angle ratio value of keyframe.handle_offset_backward (
tuple) – Relative position of backward handle.handle_offset_forward (
tuple) – Relative position of forward handle.
Constructs new BezierControlPointData instance with given parameters.
-
class
mocha.project.BezierControlPointData(BezierControlPointData)¶
-
BezierControlPointData.__ne__(bcpd)¶ - Return type
bool
-
BezierControlPointData.__eq__(bcpd)¶ - Return type
bool
-
BezierControlPointData.active¶ - Type
bool or NoneType
- Access
read-write Provides access to
activestate of keyframe.
-
BezierControlPointData.corner¶ - Type
bool or NoneType
- Access
read-write Provides access to
cornerstate of keyframe.
-
BezierControlPointData.x¶ - Type
float or NoneType
- Access
read-write Provides access to
Xkeyframe point coordinate.
-
BezierControlPointData.y¶ - Type
float or NoneType
- Access
read-write Provides access to
Ykeyframe point coordinate.
-
BezierControlPointData.edge_width¶ - Type
float or NoneType
- Access
read-write Provides access to
edge widthvalue of keyframe.
-
BezierControlPointData.edge_angle_ratio¶ - Type
float or NoneType
- Access
read-write Provides access to
edge angle ratiovalue of keyframe.
-
BezierControlPointData.handle_offset_backward¶ - Type
2-values tuple or NoneType
- Access
read-write Provides access to relative coordinates of backward tangent vertex.
-
BezierControlPointData.handle_offset_forward¶ - Type
2-values tuple or NoneType
- Access
read-write Provides access to relative coordinates of forward tangent vertex.