3.6. ShapeExportData¶
3.6.1. Synopsis¶
3.6.1.1. Functions¶
def
get_baked_in_keyframes
()
3.6.1.2. Properties¶
property
baked_in_keyframes
[read-only] of dictproperty
extra_matrix
[read-only] of boolproperty
filmback_aspect_ratio
[read-only] of floatproperty
frame_height
[read-only] of floatproperty
frame_width
[read-only] of floatproperty
keyframes_only
[read-only] of boolproperty
layer
[read-only] of Layerproperty
pixel_aspect_ratio
[read-only] of floatproperty
transforms
[read-only] of dictproperty
view
[read-only] of Viewproperty
xspline_support
[read-only] of bool
3.6.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.
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.