diff --git a/.gitignore b/.gitignore index 8f6e4bd..8c107ce 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,6 @@ build/ .venv/ *.log .DS_Store +.vscode/ Thumbs.db node.zip diff --git a/README.MD b/README.MD index c92bec7..943c570 100644 --- a/README.MD +++ b/README.MD @@ -24,6 +24,16 @@ Most PNG-to-SVG converters produce noisy paths, stray anchor points, and muddy f The node submits your image, polls for completion, and returns the SVG automatically. No extra steps. +### Storing your API key for reuse + +Instead of pasting your key into every node, you can store it once using the **Variable Set** and **Variable Get** nodes from [augment-ComfyUI](https://github.com/augment-lib/augment-ComfyUI). Install that repo for the extra utility nodes, then: + +1. Add a **Variable Set (String)** node. Set `variable_name` to `api_key` and paste your key into the `value` field. +2. Add a **Variable Get (String)** node. Set `variable_name` to `api_key` and connect its `text` output to the `api_key` input on **Vectorize Pro**. +3. Once set, you can use **Variable Get** in any workflow and it will always pull your saved key. No need to paste it again. + +![API key setup example](assets/api_key_example.png) + ## Included nodes diff --git a/assets/api_key_example.png b/assets/api_key_example.png new file mode 100644 index 0000000..952877c Binary files /dev/null and b/assets/api_key_example.png differ diff --git a/web/js/augment_style.js b/web/js/augment_style.js index 98723e1..15c0314 100644 --- a/web/js/augment_style.js +++ b/web/js/augment_style.js @@ -24,6 +24,9 @@ app.registerExtension({ const origCreated = nodeType.prototype.onNodeCreated; nodeType.prototype.onNodeCreated = function () { origCreated?.apply(this, arguments); + if (this.widgets) { + this.widgets = this.widgets.filter(w => w.name !== "Get Tokens"); + } this.addWidget("button", "Get Tokens", null, () => { window.open("https://augmentstudio.app/pricing", "_blank"); });