shape.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "type": "object",
  4. "properties": {
  5. "ty": {
  6. "title": "Type",
  7. "description": "Type of layer: Shape.",
  8. "type": "number",
  9. "const": 4
  10. },
  11. "ks": {
  12. "title": "Transform",
  13. "description": "Transform properties",
  14. "$ref": "#/helpers/transform",
  15. "type": "object"
  16. },
  17. "ao": {
  18. "title": "Auto-Orient",
  19. "description": "Auto-Orient along path AE property.",
  20. "$ref": "#/helpers/boolean",
  21. "type": "number",
  22. "default": 0
  23. },
  24. "bm": {
  25. "title": "Blend Mode",
  26. "description": "Blend Mode",
  27. "$ref": "#/helpers/blendMode",
  28. "type": "number",
  29. "default": 0
  30. },
  31. "ddd": {
  32. "title": "3d Layer",
  33. "description": "3d layer flag",
  34. "$ref": "#/helpers/boolean",
  35. "type": "number",
  36. "default": 0
  37. },
  38. "ind": {
  39. "title": "Index",
  40. "description": "Layer index in AE. Used for parenting and expressions.",
  41. "type": "number"
  42. },
  43. "cl": {
  44. "title": "Class",
  45. "description": "Parsed layer name used as html class on SVG/HTML renderer",
  46. "type": "string"
  47. },
  48. "ln": {
  49. "title": "layer HTML ID",
  50. "description": "Parsed layer name used as html id on SVG/HTML renderer",
  51. "type": "string"
  52. },
  53. "ip": {
  54. "title": "In Point",
  55. "description": "In Point of layer. Sets the initial frame of the layer.",
  56. "type": "number"
  57. },
  58. "op": {
  59. "title": "Out Point",
  60. "description": "Out Point of layer. Sets the final frame of the layer.",
  61. "type": "number"
  62. },
  63. "st": {
  64. "title": "Start Time",
  65. "description": "Start Time of layer. Sets the start time of the layer.",
  66. "type": "number"
  67. },
  68. "nm": {
  69. "title": "Name",
  70. "description": "After Effects Layer Name. Used for expressions.",
  71. "type": "number"
  72. },
  73. "hasMask": {
  74. "title": "Has Masks",
  75. "description": "Boolean when layer has a mask. Will be deprecated in favor of checking masksProperties.",
  76. "type": "number"
  77. },
  78. "masksProperties": {
  79. "title": "Masks Properties",
  80. "description": "List of Masks",
  81. "items": {
  82. "$ref": "#/helpers/mask",
  83. "type": "object"
  84. },
  85. "type": "array"
  86. },
  87. "ef": {
  88. "title": "Effects",
  89. "description": "List of Effects",
  90. "items": {
  91. "$ref": "#/effects/index",
  92. "type": "object"
  93. },
  94. "type": "array"
  95. },
  96. "sr": {
  97. "title": "Stretch",
  98. "description": "Layer Time Stretching",
  99. "type": "number",
  100. "default": 1
  101. },
  102. "parent": {
  103. "title": "Parent",
  104. "description": "Layer Parent. Uses ind of parent.",
  105. "type": "number"
  106. },
  107. "it": {
  108. "title": "Items",
  109. "description": "Shape list of items",
  110. "items": {
  111. "oneOf": [
  112. {
  113. "$ref": "#/shapes/shape"
  114. },
  115. {
  116. "$ref": "#/shapes/rect"
  117. },
  118. {
  119. "$ref": "#/shapes/ellipse"
  120. },
  121. {
  122. "$ref": "#/shapes/star"
  123. },
  124. {
  125. "$ref": "#/shapes/fill"
  126. },
  127. {
  128. "$ref": "#/shapes/gFill"
  129. },
  130. {
  131. "$ref": "#/shapes/gStroke"
  132. },
  133. {
  134. "$ref": "#/shapes/stroke"
  135. },
  136. {
  137. "$ref": "#/shapes/merge"
  138. },
  139. {
  140. "$ref": "#/shapes/trim"
  141. },
  142. {
  143. "$ref": "#/shapes/group"
  144. },
  145. {
  146. "$ref": "#/shapes/round"
  147. },
  148. {
  149. "$ref": "#/shapes/repeater"
  150. }
  151. ],
  152. "type": "object"
  153. },
  154. "type": "array"
  155. }
  156. }
  157. }