@mochiya/avatar-composition 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,628 @@
1
+ {
2
+ "$ref": "#/definitions/MOCHIYA_avatar_composition",
3
+ "definitions": {
4
+ "MOCHIYA_avatar_composition": {
5
+ "type": "object",
6
+ "properties": {
7
+ "specVersion": {
8
+ "type": "string",
9
+ "const": "0.1"
10
+ },
11
+ "assetKind": {
12
+ "type": "string",
13
+ "enum": [
14
+ "avatar",
15
+ "attachment"
16
+ ]
17
+ },
18
+ "requiredCapabilities": {
19
+ "type": "array",
20
+ "items": {
21
+ "type": "string",
22
+ "maxLength": 64
23
+ },
24
+ "maxItems": 32,
25
+ "default": []
26
+ },
27
+ "matching": {
28
+ "type": "object",
29
+ "properties": {
30
+ "mode": {
31
+ "type": "string",
32
+ "const": "keywordBestEffort"
33
+ },
34
+ "armatureKeywords": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 256
40
+ },
41
+ "maxItems": 32,
42
+ "default": []
43
+ },
44
+ "onUnresolved": {
45
+ "type": "string",
46
+ "const": "warnAndContinue"
47
+ }
48
+ },
49
+ "required": [
50
+ "mode",
51
+ "onUnresolved"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "rig": {
56
+ "type": "object",
57
+ "properties": {
58
+ "role": {
59
+ "type": "string",
60
+ "enum": [
61
+ "avatar",
62
+ "attachmentReference"
63
+ ]
64
+ }
65
+ },
66
+ "required": [
67
+ "role"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "nodes": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "node": {
77
+ "type": "integer",
78
+ "minimum": 0
79
+ },
80
+ "aliases": {
81
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/matching/properties/armatureKeywords",
82
+ "default": []
83
+ },
84
+ "active": {
85
+ "type": "boolean",
86
+ "default": true
87
+ }
88
+ },
89
+ "required": [
90
+ "node"
91
+ ],
92
+ "additionalProperties": false
93
+ },
94
+ "maxItems": 100000,
95
+ "default": []
96
+ },
97
+ "components": {
98
+ "type": "array",
99
+ "items": {
100
+ "anyOf": [
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "id": {
105
+ "type": "string",
106
+ "minLength": 1,
107
+ "maxLength": 128
108
+ },
109
+ "sourceNode": {
110
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
111
+ },
112
+ "origin": {
113
+ "type": "string",
114
+ "enum": [
115
+ "modularAvatar",
116
+ "referenceRig",
117
+ "colliderAnchor",
118
+ "authored"
119
+ ],
120
+ "default": "authored"
121
+ },
122
+ "type": {
123
+ "type": "string",
124
+ "const": "mergeArmature"
125
+ },
126
+ "target": {
127
+ "type": "object",
128
+ "properties": {
129
+ "asset": {
130
+ "type": "string",
131
+ "enum": [
132
+ "self",
133
+ "base"
134
+ ]
135
+ },
136
+ "node": {
137
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
138
+ },
139
+ "path": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "string",
143
+ "minLength": 1,
144
+ "maxLength": 256
145
+ },
146
+ "maxItems": 128
147
+ },
148
+ "boneKeywords": {
149
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/matching/properties/armatureKeywords"
150
+ },
151
+ "meshKeywords": {
152
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/matching/properties/armatureKeywords"
153
+ },
154
+ "nodeKeywords": {
155
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/matching/properties/armatureKeywords"
156
+ },
157
+ "blendshapeKeywords": {
158
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/matching/properties/armatureKeywords"
159
+ },
160
+ "morphIndex": {
161
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
162
+ },
163
+ "humanBone": {
164
+ "type": "string",
165
+ "maxLength": 64
166
+ },
167
+ "humanBonePath": {
168
+ "type": "array",
169
+ "items": {
170
+ "type": "string",
171
+ "minLength": 1,
172
+ "maxLength": 256
173
+ },
174
+ "maxItems": 128
175
+ },
176
+ "parentKeywords": {
177
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/matching/properties/armatureKeywords"
178
+ }
179
+ },
180
+ "required": [
181
+ "asset"
182
+ ],
183
+ "additionalProperties": false
184
+ },
185
+ "prefix": {
186
+ "type": "string",
187
+ "maxLength": 256,
188
+ "default": ""
189
+ },
190
+ "suffix": {
191
+ "type": "string",
192
+ "maxLength": 256,
193
+ "default": ""
194
+ },
195
+ "lockMode": {
196
+ "type": "string",
197
+ "enum": [
198
+ "unidirectional",
199
+ "bidirectional",
200
+ "notLocked"
201
+ ],
202
+ "default": "unidirectional"
203
+ },
204
+ "mangleNames": {
205
+ "type": "boolean",
206
+ "default": true
207
+ }
208
+ },
209
+ "required": [
210
+ "id",
211
+ "sourceNode",
212
+ "type",
213
+ "target"
214
+ ],
215
+ "additionalProperties": false
216
+ },
217
+ {
218
+ "type": "object",
219
+ "properties": {
220
+ "id": {
221
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/id"
222
+ },
223
+ "sourceNode": {
224
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
225
+ },
226
+ "origin": {
227
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/origin"
228
+ },
229
+ "type": {
230
+ "type": "string",
231
+ "const": "boneProxy"
232
+ },
233
+ "target": {
234
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/target"
235
+ },
236
+ "attachmentMode": {
237
+ "type": "string",
238
+ "enum": [
239
+ "keepWorldPose",
240
+ "atRoot",
241
+ "keepPosition",
242
+ "keepRotation"
243
+ ],
244
+ "default": "keepWorldPose"
245
+ },
246
+ "matchScale": {
247
+ "type": "boolean",
248
+ "default": false
249
+ }
250
+ },
251
+ "required": [
252
+ "id",
253
+ "sourceNode",
254
+ "type",
255
+ "target"
256
+ ],
257
+ "additionalProperties": false
258
+ },
259
+ {
260
+ "type": "object",
261
+ "properties": {
262
+ "id": {
263
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/id"
264
+ },
265
+ "sourceNode": {
266
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
267
+ },
268
+ "origin": {
269
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/origin"
270
+ },
271
+ "type": {
272
+ "type": "string",
273
+ "const": "shapeChanger"
274
+ },
275
+ "threshold": {
276
+ "type": "number",
277
+ "minimum": 0,
278
+ "default": 0.01
279
+ },
280
+ "condition": {
281
+ "type": "object",
282
+ "properties": {
283
+ "type": {
284
+ "type": "string",
285
+ "enum": [
286
+ "nodeActive",
287
+ "control"
288
+ ]
289
+ },
290
+ "asset": {
291
+ "type": "string",
292
+ "enum": [
293
+ "self",
294
+ "base"
295
+ ]
296
+ },
297
+ "node": {
298
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
299
+ },
300
+ "nodeKeywords": {
301
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/matching/properties/armatureKeywords"
302
+ },
303
+ "path": {
304
+ "type": "array",
305
+ "items": {
306
+ "type": "string"
307
+ },
308
+ "maxItems": 128
309
+ },
310
+ "control": {
311
+ "type": "string",
312
+ "maxLength": 128
313
+ },
314
+ "value": {
315
+ "anyOf": [
316
+ {
317
+ "type": "number"
318
+ },
319
+ {
320
+ "type": "boolean"
321
+ }
322
+ ]
323
+ },
324
+ "inverse": {
325
+ "type": "boolean"
326
+ }
327
+ },
328
+ "required": [
329
+ "type"
330
+ ],
331
+ "additionalProperties": false
332
+ },
333
+ "shapes": {
334
+ "type": "array",
335
+ "items": {
336
+ "type": "object",
337
+ "properties": {
338
+ "target": {
339
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/target"
340
+ },
341
+ "changeType": {
342
+ "type": "string",
343
+ "enum": [
344
+ "set",
345
+ "delete"
346
+ ]
347
+ },
348
+ "value": {
349
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/2/properties/condition/properties/value/anyOf/0",
350
+ "default": 0
351
+ }
352
+ },
353
+ "required": [
354
+ "target",
355
+ "changeType"
356
+ ],
357
+ "additionalProperties": false
358
+ },
359
+ "maxItems": 10000
360
+ }
361
+ },
362
+ "required": [
363
+ "id",
364
+ "sourceNode",
365
+ "type",
366
+ "shapes"
367
+ ],
368
+ "additionalProperties": false
369
+ },
370
+ {
371
+ "type": "object",
372
+ "properties": {
373
+ "id": {
374
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/id"
375
+ },
376
+ "sourceNode": {
377
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
378
+ },
379
+ "origin": {
380
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/origin"
381
+ },
382
+ "type": {
383
+ "type": "string",
384
+ "const": "blendshapeSync"
385
+ },
386
+ "condition": {
387
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/2/properties/condition"
388
+ },
389
+ "bindings": {
390
+ "type": "array",
391
+ "items": {
392
+ "type": "object",
393
+ "properties": {
394
+ "driver": {
395
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/target"
396
+ },
397
+ "driven": {
398
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/target"
399
+ },
400
+ "curve": {
401
+ "type": "object",
402
+ "properties": {
403
+ "interpolation": {
404
+ "type": "string",
405
+ "enum": [
406
+ "linear",
407
+ "step"
408
+ ]
409
+ },
410
+ "points": {
411
+ "type": "array",
412
+ "items": {
413
+ "type": "array",
414
+ "minItems": 2,
415
+ "maxItems": 2,
416
+ "items": [
417
+ {
418
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/2/properties/condition/properties/value/anyOf/0"
419
+ },
420
+ {
421
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/2/properties/condition/properties/value/anyOf/0"
422
+ }
423
+ ]
424
+ },
425
+ "minItems": 2,
426
+ "maxItems": 4096
427
+ }
428
+ },
429
+ "required": [
430
+ "interpolation",
431
+ "points"
432
+ ],
433
+ "additionalProperties": false
434
+ }
435
+ },
436
+ "required": [
437
+ "driver",
438
+ "driven"
439
+ ],
440
+ "additionalProperties": false
441
+ },
442
+ "maxItems": 10000
443
+ }
444
+ },
445
+ "required": [
446
+ "id",
447
+ "sourceNode",
448
+ "type",
449
+ "bindings"
450
+ ],
451
+ "additionalProperties": false
452
+ },
453
+ {
454
+ "type": "object",
455
+ "properties": {
456
+ "id": {
457
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/id"
458
+ },
459
+ "sourceNode": {
460
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
461
+ },
462
+ "origin": {
463
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/origin"
464
+ },
465
+ "type": {
466
+ "type": "string",
467
+ "const": "objectToggle"
468
+ },
469
+ "condition": {
470
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/2/properties/condition"
471
+ },
472
+ "objects": {
473
+ "type": "array",
474
+ "items": {
475
+ "type": "object",
476
+ "properties": {
477
+ "target": {
478
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/target"
479
+ },
480
+ "value": {
481
+ "type": "boolean"
482
+ }
483
+ },
484
+ "required": [
485
+ "target",
486
+ "value"
487
+ ],
488
+ "additionalProperties": false
489
+ },
490
+ "maxItems": 10000
491
+ }
492
+ },
493
+ "required": [
494
+ "id",
495
+ "sourceNode",
496
+ "type",
497
+ "objects"
498
+ ],
499
+ "additionalProperties": false
500
+ },
501
+ {
502
+ "type": "object",
503
+ "properties": {
504
+ "id": {
505
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/id"
506
+ },
507
+ "sourceNode": {
508
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
509
+ },
510
+ "origin": {
511
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/origin"
512
+ },
513
+ "type": {
514
+ "type": "string",
515
+ "const": "materialSetter"
516
+ },
517
+ "condition": {
518
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/2/properties/condition"
519
+ },
520
+ "objects": {
521
+ "type": "array",
522
+ "items": {
523
+ "type": "object",
524
+ "properties": {
525
+ "target": {
526
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/target"
527
+ },
528
+ "slot": {
529
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
530
+ },
531
+ "material": {
532
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
533
+ }
534
+ },
535
+ "required": [
536
+ "target",
537
+ "slot",
538
+ "material"
539
+ ],
540
+ "additionalProperties": false
541
+ },
542
+ "maxItems": 10000
543
+ }
544
+ },
545
+ "required": [
546
+ "id",
547
+ "sourceNode",
548
+ "type",
549
+ "objects"
550
+ ],
551
+ "additionalProperties": false
552
+ },
553
+ {
554
+ "type": "object",
555
+ "properties": {
556
+ "id": {
557
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/id"
558
+ },
559
+ "sourceNode": {
560
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/nodes/items/properties/node"
561
+ },
562
+ "origin": {
563
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/0/properties/origin"
564
+ },
565
+ "type": {
566
+ "type": "string",
567
+ "const": "menuItem"
568
+ },
569
+ "label": {
570
+ "type": "string",
571
+ "maxLength": 256
572
+ },
573
+ "controlType": {
574
+ "type": "string",
575
+ "enum": [
576
+ "toggle",
577
+ "button"
578
+ ]
579
+ },
580
+ "parameter": {
581
+ "type": "string",
582
+ "minLength": 1,
583
+ "maxLength": 128
584
+ },
585
+ "value": {
586
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/2/properties/condition/properties/value/anyOf/0",
587
+ "default": 1
588
+ },
589
+ "defaultValue": {
590
+ "anyOf": [
591
+ {
592
+ "$ref": "#/definitions/MOCHIYA_avatar_composition/properties/components/items/anyOf/2/properties/condition/properties/value/anyOf/0"
593
+ },
594
+ {
595
+ "type": "boolean"
596
+ }
597
+ ],
598
+ "default": 0
599
+ },
600
+ "automatic": {
601
+ "type": "boolean",
602
+ "default": true
603
+ }
604
+ },
605
+ "required": [
606
+ "id",
607
+ "sourceNode",
608
+ "type",
609
+ "label",
610
+ "controlType"
611
+ ],
612
+ "additionalProperties": false
613
+ }
614
+ ]
615
+ },
616
+ "maxItems": 10000,
617
+ "default": []
618
+ }
619
+ },
620
+ "required": [
621
+ "specVersion",
622
+ "assetKind"
623
+ ],
624
+ "additionalProperties": false
625
+ }
626
+ },
627
+ "$schema": "http://json-schema.org/draft-07/schema#"
628
+ }