Vector kit command

object.addTrimMarks

Create Trim Marks

Draws trim marks around the selection or every artboard, in Roman or Japanese style.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of object.addTrimMarks
NameTypeRequiredDescription
allArtboardsbooleannodefault: true when nothing is selected
bleednumbernopoints; 8.5, japanese
japaneseanynodefault: the japaneseCropMarks preference; japanese: double lines at the trim and bleed edges plus centre marks; one of several alternative parameters
lengthnumbernopoints; 18
offsetnumbernopoints; 9, roman
stylestringnolike roman; one of several alternative parameters
weightnumbernopoints; 0.3

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "object.addTrimMarks" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: allArtboards, bleed, japanese, length, offset, style, weight. vector_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "allArtboards": {
      "description": "default: true when nothing is selected",
      "type": "boolean"
    },
    "bleed": {
      "description": "points; 8.5, japanese",
      "type": "number"
    },
    "japanese": {
      "description": "default: the japaneseCropMarks preference; japanese: double lines at the trim and bleed edges plus centre marks; one of several alternative parameters"
    },
    "length": {
      "description": "points; 18",
      "type": "number"
    },
    "offset": {
      "description": "points; 9, roman",
      "type": "number"
    },
    "style": {
      "description": "like roman; one of several alternative parameters",
      "type": "string"
    },
    "weight": {
      "description": "points; 0.3",
      "type": "number"
    }
  },
  "returns": "{id: the first group, ids}",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.