mask.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "type": "object",
  4. "properties": {
  5. "inv": {
  6. "title": "Inverted",
  7. "description": "Inverted Mask flag",
  8. "type": "boolean",
  9. "default": false
  10. },
  11. "nm": {
  12. "title": "Name",
  13. "description": "Mask name. Used for expressions and effects.",
  14. "type": "string"
  15. },
  16. "pt": {
  17. "title": "Points",
  18. "description": "Mask vertices",
  19. "oneOf": [
  20. {
  21. "$ref": "#/properties/shape"
  22. },
  23. {
  24. "$ref": "#/properties/shapeKeyframed"
  25. }
  26. ],
  27. "type": "object"
  28. },
  29. "o": {
  30. "title": "Opacity",
  31. "description": "Mask opacity.",
  32. "type": "object",
  33. "oneOf": [
  34. {
  35. "$ref": "#/properties/value"
  36. },
  37. {
  38. "$ref": "#/properties/valueKeyframed"
  39. }
  40. ],
  41. "default": {"a":0, "k":100}
  42. },
  43. "mode": {
  44. "title": "Mode",
  45. "description": "Mask mode. Not all mask types are supported.",
  46. "type": "string",
  47. "oneOf": [
  48. {
  49. "standsFor": "None",
  50. "const": "n"
  51. },
  52. {
  53. "standsFor": "Additive",
  54. "const": "a"
  55. },
  56. {
  57. "standsFor": "Subtract",
  58. "const": "s"
  59. },
  60. {
  61. "standsFor": "Intersect",
  62. "const": "i"
  63. },
  64. {
  65. "standsFor": "Lighten",
  66. "const": "l"
  67. },
  68. {
  69. "standsFor": "Darken",
  70. "const": "d"
  71. },
  72. {
  73. "standsFor": "Difference",
  74. "const": "f"
  75. }
  76. ],
  77. "default": "a"
  78. }
  79. }
  80. }