---
title: "eyedropper.setOptions: Eyedropper Options — Vector kit command — Kition"
description: "Sets which attributes the Eyedropper picks up and applies and its image sample size; affects appearance.copyFrom."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/eyedropper.setOptions"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/eyedropper.setOptions](https://developer.kition.ai/docs/kits/vector/commands/eyedropper.setOptions)

# eyedropper.setOptions

**Eyedropper Options.** Sets which attributes the Eyedropper picks up and applies and its image sample size; affects appearance.copyFrom.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `apply` | `object` | no | {appearance?: {transparency?, fill?: {color?, transparency?, overprint?}, stroke?: {color?, transparency?, overprint?, weight?, cap?, join?, miter?, dash?}}, character?, paragraph?} (bools; a bool for a branch sets all of it); bools; a bool for a branch sets all of it |
| `ids` | `any[]` | no | read by the command beside its listed parameters |
| `item` | `string` | no | read by the command beside its listed parameters |
| `pickUp` | `object` | no |  |
| `sampleSize` | `1 \| 3 \| 5` | no | pixels square averaged when sampling an image: point, 3×3, 5×5 |
| `target` | `string` | no | "object" (default) or "contents": the objects themselves, or what their groups and layers hold |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "eyedropper.setOptions" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `apply`, `ids`, `item`, `pickUp`, `sampleSize`, `target`. vector_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `apply` | `object` | no |  |
| `pickUp` | `object` | no |  |
| `sampleSize` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "apply": {
      "additionalProperties": true,
      "properties": {
        "appearance": {
          "additionalProperties": true,
          "properties": {
            "fill": {
              "additionalProperties": true,
              "type": "object"
            },
            "stroke": {
              "additionalProperties": true,
              "type": "object"
            },
            "transparency": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "character": {
          "type": "boolean"
        },
        "paragraph": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "pickUp": {
      "additionalProperties": true,
      "properties": {
        "appearance": {
          "additionalProperties": true,
          "properties": {
            "fill": {
              "additionalProperties": true,
              "type": "object"
            },
            "stroke": {
              "additionalProperties": true,
              "type": "object"
            },
            "transparency": {
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "character": {
          "type": "boolean"
        },
        "paragraph": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "sampleSize": {
      "type": "number"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "apply": {
      "additionalProperties": true,
      "description": "{appearance?: {transparency?, fill?: {color?, transparency?, overprint?}, stroke?: {color?, transparency?, overprint?, weight?, cap?, join?, miter?, dash?}}, character?, paragraph?} (bools; a bool for a branch sets all of it); bools; a bool for a branch sets all of it",
      "properties": {
        "appearance": {
          "additionalProperties": true,
          "description": "{transparency?, fill?: {color?, transparency?, overprint?}, stroke?: {color?, transparency?, overprint?, weight?, cap?, join?, miter?, dash?}}",
          "properties": {
            "fill": {
              "additionalProperties": true,
              "description": "{color?, transparency?, overprint?}",
              "properties": {
                "color": {
                  "type": "string"
                },
                "overprint": {},
                "transparency": {}
              },
              "type": "object"
            },
            "stroke": {
              "additionalProperties": true,
              "description": "{color?, transparency?, overprint?, weight?, cap?, join?, miter?, dash?}",
              "properties": {
                "cap": {},
                "color": {
                  "type": "string"
                },
                "dash": {},
                "join": {},
                "miter": {},
                "overprint": {},
                "transparency": {},
                "weight": {
                  "type": "number"
                }
              },
              "type": "object"
            },
            "transparency": {}
          },
          "type": "object"
        },
        "character": {},
        "paragraph": {}
      },
      "type": "object"
    },
    "ids": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "item": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "pickUp": {
      "additionalProperties": true,
      "type": "object"
    },
    "sampleSize": {
      "description": "pixels square averaged when sampling an image: point, 3×3, 5×5",
      "enum": [
        1,
        3,
        5
      ],
      "type": "integer"
    },
    "target": {
      "description": "\"object\" (default) or \"contents\": the objects themselves, or what their groups and layers hold",
      "type": "string"
    }
  },
  "returns": "the options",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
