2.4. BezierControlPointData

2.4.1. Synopsis

2.4.1.1. Functions

2.4.1.2. Properties

  • property active [read-write] of bool or NoneType

  • property corner [read-write] of bool or NoneType

  • property edge_angle_ratio [read-write] of float or NoneType

  • property edge_width [read-write] of float or NoneType

  • property handle_offset_backward [read-write] of 2-values tuple or NoneType

  • property handle_offset_forward [read-write] of 2-values tuple or NoneType

  • property x [read-write] of float or NoneType

  • property 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 (mocha.project.OptionalBool) – Active state of keyframe.

  • corner (mocha.project.OptionalBool) – Corner state of keyframe.

  • x (mocha.project.OptionalFloat) – X coordinate value of keyframe.

  • y (mocha.project.OptionalFloat) – Y coordinate value of keyframe.

  • edge_width (mocha.project.OptionalFloat) – Edge width of keyframe.

  • edge_angle_ratio (mocha.project.OptionalFloat) – Edge angle ratio value of keyframe.

  • handle_offset_backward (mocha.project.tuple) – Relative position of backward handle.

  • handle_offset_forward (mocha.project.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 active state of keyframe.

BezierControlPointData.corner
Type

bool or NoneType

Access

read-write Provides access to corner state of keyframe.

BezierControlPointData.x
Type

float or NoneType

Access

read-write Provides access to X keyframe point coordinate.

BezierControlPointData.y
Type

float or NoneType

Access

read-write Provides access to Y keyframe point coordinate.

BezierControlPointData.edge_width
Type

float or NoneType

Access

read-write Provides access to edge width value of keyframe.

BezierControlPointData.edge_angle_ratio
Type

float or NoneType

Access

read-write Provides access to edge angle ratio value 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.