3.7. ShapeExportData

3.7.1. Synopsis

3.7.1.1. Functions

3.7.1.2. Properties

3.7.2. Detailed Description

class mocha.exporters.ShapeExportData(layer, firstFrame, lastFrame[, view=View( 0 )[, accuracy_treshold=2.0[, extra_matrix=true[, keyframes_only=true[, xspline_support=true]]]]])
class mocha.exporters.ShapeExportData(ShapeExportData)
ShapeExportData.get_baked_in_keyframes()
Return type:PyObject
ShapeExportData.frame_width
Type:float
Access:read-only

Provides access to the frame width.

ShapeExportData.frame_height
Type:float
Access:read-only

Provides access to the frame height.

ShapeExportData.filmback_aspect_ratio
Type:float
Access:read-only

Provides access to the film back aspect ratio.

ShapeExportData.pixel_aspect_ratio
Type:float
Access:read-only

Provides access to the frame pixel aspect ratio.

ShapeExportData.layer
Type:mocha.exporters.Layer
Access:read-only

Provides access to the layer.

ShapeExportData.view
Type:mocha.exporters.View
Access:read-only

Provides access to the view.

ShapeExportData.baked_in_keyframes
Type:dict
Access:read-only

Provides access to the baked-in keyframes. They are presented as { (spline_name, spline_type): {

keyframe1: [PointData(...), ...], ... },

... } For example:

{ (‘Spline 1’, ‘XSpline’): {
0.0: [XControlPointData(...), XControlPointData(...), XControlPointData(...), XControlPointData(...),], 4.0: [XControlPointData(...), XControlPointData(...), XControlPointData(...), XControlPointData(...),], 8.0: [XControlPointData(...), XControlPointData(...), XControlPointData(...), XControlPointData(...),], ... },

(‘Spline 2’, ‘Bezier’): { 0.0: [BezierControlPointData(...), BezierControlPointData(...), BezierControlPointData(...),], 15.0: [BezierControlPointData(...), BezierControlPointData(...), BezierControlPointData(...),], 16.0: [BezierControlPointData(...), BezierControlPointData(...), BezierControlPointData(...),], 23.0: [BezierControlPointData(...), BezierControlPointData(...), BezierControlPointData(...),], 42.0: [BezierControlPointData(...), BezierControlPointData(...), BezierControlPointData(...),], },

... }

ShapeExportData.transforms
Type:dict
Access:read-only

Provides access to the transforms.

ShapeExportData.extra_matrix
Type:bool
Access:read-only

Whether the tracking data should be prepared as a keyframed set of transform matrices.

ShapeExportData.keyframes_only
Type:bool
Access:read-only

Whether coordinates should be used only at shape keyframes.

ShapeExportData.xspline_support
Type:bool
Access:read-only

Whether export X-Spline like X-Spline or convert to Bezier.