Skip to main content

tech_pack_v3_7.json

tech_pack.json Copy Json { "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { "garment_info": { "proper...

Updated over 3 weeks ago

tech_pack.json

Copy Json

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "definitions": {
    "garment_info": {
      "properties": {
        "caption": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "exclude": {
          "type": "boolean"
        }
      },
      "required": [
        "caption",
        "value",
        "exclude"
      ]
    },
    "fabric_side": {
      "type": "object",
      "properties": {
        "colorBlending": {
          "type": "string",
          "enum": ["none", "multiply", "overlay", "recolor"]
        },
        "colors": { "$ref": "#/definitions/color" },
        "front": {
          "type": "boolean"
        },
        "maps": { "$ref": "#/definitions/maps" },
        "normalMapFactor": {
          "type": "number"
        },
        "opacity": {
          "type": "integer"
        },
        "vectorColorsMap":{
          "type": "array",
          "items": {
            "colors": { "$ref": "#/definitions/color" }
          }
        }
      },
      "required": [
        "colorBlending",
        "colors",
        "front",
        "maps",
        "normalMapFactor",
        "opacity"
      ]
    },
    "dimensions": {
      "type": "array",
      "items": [
        {
          "type": "number"
        },
        {
          "type": "number"
        }
      ]
    },
    "workmanship": {
      "type": "object",
      "properties": {
        "LengthUnit": {
          "type": "number"
        },
        "LengthUnitSign": {
          "type": "string",
          "enum": ["spi", "spc", "in"]
        },
        "LengthUnitPrecision": {
          "type": "integer"
        },
        "ThicknessUnitSign": {
          "type": "string",
          "enum": ["in", "tex", "tkt", "nm", "d" ]
        },
        "ThicknessUnitPrecision":{
          "type": "integer"
        },
        "WidthUnit": {
          "type": "number"
        },
        "ThicknessUnit": {
          "type": "integer"
        },
        "edgeOffset": {
          "type": "integer"
        },
        "linesCount": {
          "type": "integer"
        },
        "distance": {
          "type": "number"
        }
      },
      "required": [
        "LengthUnit",
        "LengthUnitSign",
        "LengthUnitPrecision",
        "WidthUnit",
        "ThicknessUnit",
        "edgeOffset",
        "linesCount",
        "distance"
      ]
    },
    "colorway_item": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "color_RGB": {
      "type": "array",
      "items": [
        {
          "type": "integer"
        },
        {
          "type": "integer"
        },
        {
          "type": "integer"
        }
      ]
    },
    "files_item": {
      "type": "object",
      "properties": {
        "colorway": {
          "type": "string"
        },
        "file": {
          "type": "string"
        },
        "isBack": {
          "type": "boolean"
        },
        "shape": {
          "type": "integer"
        },
        "size": {
          "type": "null"
        }
      },
      "required": [
        "colorway",
        "file",
        "isBack",
        "shape",
        "size"
      ]
    },
    "annotation_entry_item" :  {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "text": {
          "type": "string"
        },
        "posX": {
          "type": "number"
        },
        "posY": {
          "type": "number"
        },
        "userID": {
          "type": "string"
        },
        "userName": {
          "type": "string"
        },
        "userImagePath": {
          "type": "string"
        },
        "timestamp": {
          "type": "integer"
        }
      },
      "required": [
        "id",
        "text",
        "posX",
        "posY",
        "userID",
        "userName",
        "userImagePath",
        "timestamp"
      ]
    },
    "maps":{
      "type": "object",
      "properties": {
        "alloverPrint": {
          "type": "object",
          "properties": {
            "src": {
              "type": "string"
            }
          },
          "required": [
            "src"
          ]
        },
        "diffuse": {
          "type": "object",
          "properties": {
            "height": {
              "type": "number"
            },
            "src": {
              "type": "string"
            },
            "width": {
              "type": "number"
            }
          },
          "required": [
            "height",
            "src",
            "width"
          ]
        },
        "normal": {
          "type": "object",
          "properties": {
            "height": {
              "type": "number"
            },
            "src": {
              "type": "string"
            },
            "width": {
              "type": "number"
            }
          },
          "required": [
            "height",
            "src",
            "width"
          ]
        },
        "original": {
          "type": "object",
          "properties": {
            "src": {
              "type": "string"
            }
          },
          "required": [
            "src"
          ]
        },
        "specular": {
          "type": "object",
          "properties": {
            "height": {
              "type": "number"
            },
            "src": {
              "type": "string"
            },
            "width": {
              "type": "number"
            }
          },
          "required": [
            "height",
            "src",
            "width"
          ]
        }
      }
    },
    "color": {
      "type": "object",
      "properties": {
        "diffuse": {
          "type": "object",
          "properties": {
            "colorRGB": { "$ref": "#/definitions/color_RGB" },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "colorRGB",
            "name"
          ]
        },
        "specular": {
          "type": "object",
          "properties": {
            "colorRGB": { "$ref": "#/definitions/color_RGB" },
            "name": {
              "type": "string"
            },
            "factor": {
              "type": "integer"
            }
          },
          "required": [
            "colorRGB",
            "name",
            "factor"
          ]
        }
      }
    },
    "shape": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "originalName": {
            "type": "string"
          },
          "posX": {
            "type": "number"
          },
          "posY": {
            "type": "number"
          },
          "rotationAngle": {
            "type": "number"
          },
          "fabric": {
            "type": "integer"
          },
          "isGroup": {
            "type": "boolean"
          },
          "fabricName": {
            "type": "string"
          },
          "layoutImage" : {
            "type": "string"
          },
          "positions": {
            "type": "array",
            "items": [
              {
                "type": "array",
                "items": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "isCenteredX": {
                        "type": "boolean"
                      },
                      "isCenteredY": {
                        "type": "boolean"
                      },
                      "rotationAngle": {
                        "type": "number"
                      },
                      "orientationX": {
                        "type": "string"
                      },
                      "orientationY": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "isCenteredX",
                      "isCenteredY",
                      "rotationAngle",
                      "orientationX",
                      "orientationY"
                    ]
                  }
                ]
              }
            ]
          },
          "bakedLayoutImage" : {
            "type": "string"
          },
          "bakedImage" : {
            "type": "string"
          },
          "layoutImageFull" : {
            "type": "string"
          },
          "bakedLayoutImageFull" : {
            "type": "string"
          },
          "bakedImageFull" : {
            "type": "string"
          },
          "surfaceAreas": {
            "type": "object",
            "properties": {
              ".*": {
                "type": "number"
              }
            }
          }
        },
        "required": [
          "id",
          "name",
          "originalName"
        ]
    },
    "layout_item": {
      "type": "object",
      "properties": {
        "colorwayName": {
          "type": "string"
        },
        "file": {
          "type": "string"
        },
        "shapes": {
          "type": "array",
          "items": {"$ref":"#/definitions/shape"}
        }
      },
      "required": [
        "colorwayName",
        "file",
        "shapes"
      ]
    }
  },
  "description": "tech pack output",
  "type": "object",
  "properties": {
    "ver": {
      "type": "integer"
    },
    "logoFile": {
      "type": "string",
      "description": "optional logo file. From Preferences dialog"
    },
    "unitSign": {
      "type": "string",
      "enum": ["mm", "cm", "in"],
      "description": "Unit from Preferences dialog"
    },
    "unitPrecision": {
      "type": "integer",
      "description": "defaults are mm: 1, cm: 2, in: 3"
    },
    "garmentId": {
      "type": "string"
    },
    "garmentFileName": {
      "type": "string"
    },
    "sizes": {
      "type": "array",
      "items": [
        {
          "type": "string"
        }
      ]
    },
    "GarmentInfo": {
      "type": "object",
      "properties": {
         ".*": { "$ref": "#/definitions/garment_info" }
      }      
    },
    "bom": {
      "type": "object",
      "properties": {
        ".*": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "fabrics": 
            {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "databaseName": {
                    "type": "string"
                  },
                  "fiberDescription": {
                    "type": "string"
                  },
                  "physicalUid": {
                    "type": "integer"
                  },
                  "colorBlending": {
                    "type": "string",
                    "enum": ["none", "multiply", "overlay", "recolor"]
                  },
                  "type": {
                    "type": "string",
                    "enum": ["material", "seam", "stamp", "3dObject"]
                  },
                  "userType": {
                    "type": "string",
                    "enum": ["trim", "fabric", "seam", "artwork"]
                  },
                  "userMetadata":{
                    "type": "string"
                  },
                  "artworkExecutionCaption" : {
                    "type": "string"
                  },
                  "laserFinish" : {
                    "type": "boolean"
                  },
                  "sizeDimensions": {
                    "type": "array",
                    "items": [
                      {
                        "type": "object",
                        "properties": {
                          "size": {
                            "type": "string"
                          },
                          "width": {
                            "type": "number"
                          },
                          "height": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "size",
                          "width",
                          "height"
                        ]
                      }
                    ]
                  },
                  "sizeGroups": {
                    "type": "array",
                    "items": [
                      {
                        "type": "array",
                        "items": [
                          {
                            "type": "string"
                          }
                        ]
                      }
                    ]
                  },                      
                  "dimensions": { "$ref": "#/definitions/dimensions" },
                  "workmanship": { "$ref": "#/definitions/workmanship" },
                  "shapes": {
                    "type": "array",
                    "items": {"$ref":"#/definitions/shape"}
                  },
                  "front": { "$ref": "#/definitions/fabric_side" },
                  "back": { "$ref": "#/definitions/fabric_side" }
                },
                "required": [
                  "id",
                  "name",
                  "databaseName",
                  "fiberDescription",
                  "physicalUid",
                  "colorBlending",
                  "type",
                  "userType",
                  "dimensions",
                  "shapes",
                  "front",
                  "back"
                ]
              }
            },
            "groups": {
              "type": "array",
              "items":  {
                "type": "object",
                "properties": {
                  "back": {
                    "type": "string"
                  },
                  "complexType": {
                    "type": "string"
                  },
                  "fabrics": {
                    "type": "array",
                    "items":  {
                      "type": "object",
                      "properties": {
                        "alloverPrint": {
                          "type": "boolean"
                        },
                        "back": { "$ref": "#/definitions/fabric_side" },
                        "colorBlending": {
                          "type": "string",
                          "enum": ["none", "multiply", "overlay", "recolor"]
                        },
                        "databaseName": {
                          "type": "string"
                        },
                        "artworkExecutionCaption" : {
                          "type": "string"
                        },
                        "laserFinish" : {
                          "type": "boolean"
                        },
                        "sizeDimensions": {
                          "type": "array",
                          "items": [
                            {
                              "type": "object",
                              "properties": {
                                "size": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "number"
                                },
                                "height": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "size",
                                "width",
                                "height"
                              ]
                            }
                          ]
                        },
                        "dimensions": { "$ref": "#/definitions/dimensions" },
                        "fiberDescription": {
                          "type": "string"
                        },
                        "front":  { "$ref": "#/definitions/fabric_side" },
                        "id": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string"
                        },
                        "physicalUid": {
                          "type": "integer"
                        },
                        "shapes": {
                          "type": "array",
                          "items": { "$ref": "#/definitions/shape" }
                        },
                        "type": {
                          "type": "string",
                          "enum": ["material", "seam", "stamp", "3dObject"]
                        },
                        "userMetadata":{
                          "type": "string"
                        },
                        "userType": {
                          "type": "string",
                          "enum": ["trim", "fabric", "seam", "artwork"]
                        },
                        "workmanship": { "$ref": "#/definitions/workmanship" }
                      },
                      "required": [
                        "alloverPrint",
                        "back",
                        "databaseName",
                        "dimensions",
                        "fiberDescription",
                        "front",
                        "id",
                        "name",
                        "physicalUid",
                        "shapes",
                        "type",
                        "userType"
                      ]
                    }
                  },
                  "front": {
                    "type": "string"
                  },
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": ["material", "seam", "stamp", "3dObject"]
                  },
                  "usePhysics": {
                    "type": "integer"
                  },
                  "userType": {
                    "type": "string",
                    "enum": ["trim", "fabric", "seam", "artwork"]
                  }
                },
                "required": [
                  "back",
                  "complexType",
                  "fabrics",
                  "front",
                  "id",
                  "name",
                  "type",
                  "usePhysics",
                  "userType"
                ]
              }
            }
          },
          "required": [
            "id",
            "name",
            "fabrics"
          ]
        }
      }
    },
    "colorways": {
      "type": "array",
      "items": { "$ref":"#/definitions/colorway_item" }
    },
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": [
              {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string"
                  },
                  "multipack": {
                    "type": "boolean"
                  },
                  "colorways": {
                    "type": "array",
                    "items":
                      {
                        "type": "string"
                      }
                  },
                  "preset": {
                    "type": "string"
                  }
                },
                "required": [
                  "file",
                  "multipack",
                  "colorways",
                  "preset"
                ]
              }
            ]
          }
        },
        "required": [
          "name",
          "items"
        ]
      }
    },
    "rulers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "length": {
            "type": "object",
            "properties": {
              ".*": {
                "type": "number"
              }
            }
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "length",
          "name"
        ]
      }
    },
    "shapes": {
      "type": "object",
      "properties": {
        "dpi": {
          "type": "integer"
        },
        "fabricTextures": {
          "type": "boolean"
        },
        "fabricTexturesOverAllowance": {
          "type": "boolean"
        },
        "seamTextures": {
          "type": "boolean"
        },
        "attachments": {
          "type": "boolean"
        },
        "drawRulers": {
          "type": "boolean"
        },
        "drawRulersIgnoreCentered": {
          "type": "boolean"
        },
        "attachmentsOutOfShapes": {
          "type": "boolean"
        },
        "includeAllowance": {
          "type": "boolean"
        },
        "allSizes": {
          "type": "boolean"
        },
        "nestSizes": {
          "type": "boolean"
        },
        "insideView": {
          "type": "boolean"
        },
        "useOriginalDXFNames": {
          "type": "boolean"
        },
        "includeTextures": {
          "type": "boolean"
        },
        "lottaDrawings": {
          "type": "boolean"
        },
        "layout": {
          "type": "array",
          "items": {"$ref":"#/definitions/layout_item"}
        },
        "files": {
          "type": "array",
          "items": {"$ref": "#/definitions/files_item"}
        }
      },
      "required": [
        "dpi",
        "fabricTextures",
        "fabricTexturesOverAllowance",
        "seamTextures",
        "attachments",
        "drawRulers",
        "drawRulersIgnoreCentered",
        "attachmentsOutOfShapes",
        "includeAllowance",
        "allSizes",
        "nestSizes",
        "insideView",
        "useOriginalDXFNames"
      ]
    },
    "annotations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "avatarType": {
            "type": "string"
          },
          "avatar": {
            "type": "string"
          },
          "pose": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "colorway": {
            "type": "string"
          },
          "file": {
            "type": "string"
          },
          "colorId": {
            "type": "integer"
          },
          "id": {
            "type": "integer"
          },
          "entries": {
            "type": "array",
            "items": {"$ref": "#/definitions/annotation_entry_item"}
          }
        },
        "required": [
          "avatarType",
          "avatar",
          "pose",
          "size",
          "colorway",
          "file",
          "colorId",
          "id",
          "entries"
        ]
      }
    },
    "colorLibs": {
      "type": "object",
      "properties": {
        ".*": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              ".*": {
                "type": "integer"
              },
              "int": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "rgb": { "$ref": "#/definitions/color_RGB" }
            },
            "required": [
              "int",
              "name",
              "rgb"
            ]
          }
        }
      }
    }
  },
  "required": [
    "ver",
    "logoFile",
    "unitSign",
    "unitPrecision",
    "garmentId",
    "garmentFileName",
    "sizes",
    "GarmentInfo"
  ]
}
Did this answer your question?