Scene kit command

paint.gradient

Gradient

Fills group `group` (the paint group without it) with a `kind` linear or radial gradient from viewport pixel `from` (full brush weight) to `to`, as one undo step.

Kit
Scene 0.1.0 (.kscene)
Changes the document
yes

Parameters

Parameters of paint.gradient
NameTypeRequiredDescription
fromnumber[]yesWhere the full weight is, viewport pixels [x, y]
groupstringnoThe group; the paint group when left out
kind"linear" | "radial"noAlong the line, or around the start (linear)
tonumber[]yesWhere it has faded out, viewport pixels [x, y]

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "paint.gradient", "params": { "from": <number[]>, "to": <number[]> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: group, kind. scene_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": {
    "from": {
      "description": "Where the full weight is, viewport pixels [x, y]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "group": {
      "description": "The group; the paint group when left out",
      "type": "string"
    },
    "kind": {
      "description": "Along the line, or around the start (linear)",
      "enum": [
        "linear",
        "radial"
      ],
      "type": "string"
    },
    "to": {
      "description": "Where it has faded out, viewport pixels [x, y]",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "required": [
    "from",
    "to"
  ],
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.