-
-
Notifications
You must be signed in to change notification settings - Fork 314
/
Copy pathreference.json
98 lines (98 loc) · 5.77 KB
/
reference.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
// Skeleton to import
"skeleton" :
{
"filename" : "skeleton.ozz", // Specifies skeleton input/output filename. The file will be outputted if import is true. It will also be used as an input reference during animations import.
// Define skeleton import settings.
"import" :
{
"enable" : true, // Imports (from source data file) and writes skeleton output file.
"raw" : false, // Outputs raw skeleton.
// Define nodes types that should be considered as skeleton joints.
"types" :
{
"skeleton" : true, // Uses skeleton nodes as skeleton joints.
"marker" : false, // Uses marker nodes as skeleton joints.
"camera" : false, // Uses camera nodes as skeleton joints.
"geometry" : false, // Uses geometry nodes as skeleton joints.
"light" : false, // Uses light nodes as skeleton joints.
"null" : false, // Uses null nodes as skeleton joints.
"any" : false // Uses any node type as skeleton joints, including those listed above and any other.
}
}
},
// Animations to import.
"animations" :
[
{
"clip" : "*", // Specifies clip name (take) of the animation to import from the source file. Wildcard characters '*' and '?' are supported
"filename" : "*.ozz", // Specifies animation output filename. Use a '*' character to specify part(s) of the filename that should be replaced by the clip name.
"raw" : false, // Outputs raw animation.
"additive" : false, // Creates a delta animation that can be used for additive blending.
"additive_reference" : "animation", // Select reference pose to use to build additive/delta animation. Can be "animation" to use the 1st animation keyframe as reference, or "skeleton" to use skeleton rest pose.
"sampling_rate" : 0, // Selects animation sampling rate in hertz. Set a value <= 0 to use imported scene default frame rate.
"iframe_interval" : 10, // A 0 interval means no iframe is generated. Any positive number is the interval between iframes, with a guaranteed one at the end of the animation (even if interval is smaller than animation duration)
"optimize" : true, // Activates keyframes reduction optimization.
"optimization_settings" :
{
"tolerance" : 0.001, // The maximum error that an optimization is allowed to generate on a whole joint hierarchy.
"distance" : 0.1, // The distance (from the joint) at which error is measured. This allows to emulate effect on skinning.
// Per joint optimization setting override
"override" :
[
{
"name" : "*", // Joint name. Wildcard characters '*' and '?' are supported
"tolerance" : 0.001, // The maximum error that an optimization is allowed to generate on a whole joint hierarchy.
"distance" : 0.1 // The distance (from the joint) at which error is measured. This allows to emulate effect on skinning.
}
]
},
// Tracks to build.
"tracks" :
{
// Properties to import.
"properties" :
[
{
"filename" : "*.ozz", // Specifies track output filename(s). Use a '*' character to specify part(s) of the filename that should be replaced by the track (aka "joint_name-property_name") name.
"joint_name" : "*", // Name of the joint that contains the property to import. Wildcard characters '*' and '?' are supported.
"property_name" : "*", // Name of the property to import. Wildcard characters '*' and '?' are supported.
"type" : "float1", // Type of the property, can be float1 to float4, point and vector (aka float3 with scene unit and axis conversion).
"raw" : false, // Outputs raw track.
"optimize" : true, // Activates keyframes optimization.
"optimization_tolerance" : 0.001 // Optimization tolerance
}
],
// Root motion track extraction.
"motion" :
{
"enable" : false, // Extracts root motion from the animation and writes tracks (position, rotation) to a file.
"filename" : "*_motion_track.ozz", // Specifies motion tracks output filename(s). Use a '*' character to specify part(s) of the filename that should be replaced by the clip name.
"joint_name" : "", // Name of the joint containing the motion to extract. Leave empty to select joint 0 (aka the first root).
// Root motion position settings.
"position" :
{
"components" : "xz", // Components to import, can be any composition of x, y and z.
"reference" : "skeleton", // Root motion extraction reference pose, can be absolute, skeleton or animation.
"bake" : true, // Bake extracted motion into animation.
"loop" : false, // Distributes begin - end difference to make animation loopable.
"raw" : false, // Outputs raw track.
"optimize" : true, // Activates keyframes optimization.
"optimization_tolerance" : 0.001 // Optimization tolerance for the optimized track
},
// Root motion rotation settings.
"rotation" :
{
"components" : "y", // Components to import, can be any composition of x, y and z.
"reference" : "skeleton", // Root motion extraction reference pose, can be absolute, skeleton or animation.
"bake" : true, // Bake extracted motion into animation.
"loop" : false, // Distributes begin - end difference to make animation loopable.
"raw" : false, // Outputs raw track.
"optimize" : true, // Activates keyframes optimization.
"optimization_tolerance" : 0.001 // Optimization tolerance for the optimized track
}
}
}
}
]
}