Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor
Document the tested macOS Shortcuts setup and its limits
shinshin867330b9eae9ad
diff --git a/README.ja.md b/README.ja.mdindex d33ddcf..94095c6 100644--- a/README.ja.md+++ b/README.ja.md@@ -84,7 +84,7 @@ npm run dev-「表情」のボタンか、キー1〜8で、笑顔、驚き、ウインクなどに切り替えられます。切り替えている間も、まばたきや口の動きはカメラとマイクに合わせて動きます。macOS の「ショートカット」アプリや Stream Deck のボタンを使えば、他のアプリを操作中でも切り替えられます([設定方法](docs/reference.md#switching-expressions-from-other-apps)、英語)。+「表情」のボタンか、キー1〜8で、笑顔、驚き、ウインクなどに切り替えられます。切り替えている間も、まばたきや口の動きはカメラとマイクに合わせて動きます。Stream Deck のボタンやキーボードショートカットを使えば、OBS など他のアプリを操作中でも切り替えられます。macOS の「ショートカット」アプリで割り当てたキーは、前面のアプリによっては効かないことがあります([設定方法](docs/reference.md#switching-expressions-from-other-apps)、英語)。カメラは使わなくてもかまいません。マイクだけをオンにすると、アバターは待機動作を続けながら、声に合わせて口を動かします。Zoom や Google Meet などの Web 会議にアバターで参加するときは、OBS の仮想カメラを使います([手順](docs/reference.md#video-calls)、英語)。diff --git a/README.md b/README.mdindex b306d0b..fd98281 100644--- a/README.md+++ b/README.md@@ -120,9 +120,9 @@ stopped or slowed while hidden, bring its window to the front.Switch expressions such as a smile, surprise or a wink with the **Expression** buttons or-keys **1**–**8** while tracking continues. Keyboard shortcuts from macOS Shortcuts or a-Stream Deck button can switch them while another app is in front-([details](docs/reference.md#switching-expressions-from-other-apps)).+keys **1**–**8** while tracking continues. A Stream Deck button or a keyboard shortcut can+switch them while another app such as OBS is in front; macOS Shortcuts keys do not work in+every app ([details](docs/reference.md#switching-expressions-from-other-apps)).The camera is optional: with only the microphone on, the avatar keeps its idle motion andyour voice moves the mouth. To appear as the avatar in Zoom, Google Meet and similar apps, usediff --git a/docs/reference.md b/docs/reference.mdindex f4721a3..0cca504 100644--- a/docs/reference.md+++ b/docs/reference.md@@ -217,8 +217,8 @@ under bangs show less difference between Half-lidded, Angry and Sad.### Switching expressions from other appsKeyboard-shortcut apps and button panels such as Stream Deck can switch expressions while-another app is in front. They send a request to the development server, which forwards it to-the Live page; keep the Live page open.+another app, such as OBS, is in front. They send a request to the development server, which+forwards it to the Live page; keep the Live page open.Open **Expression → Switch from other apps** on the Live page to copy the request URL and thetoken. Each request is:@@ -233,12 +233,17 @@ Sending the expression already shown returns to Neutral, so one shortcut can tog**macOS Shortcuts**-1. In the Shortcuts app, create a shortcut and add the **Get Contents of URL** action.-2. Enter the request URL, then expand the action: set **Method** to **POST**, add the header- `X-Studio-Token` with the token, and set **Request Body** to **JSON** with the key- `expression` and the text value `smile`.-3. In the shortcut's details, choose **Add Keyboard Shortcut** and press the keys to use.-4. Repeat for each expression you want. Run the shortcut once from the app to check it.+1. In the Shortcuts app, open **Settings → Advanced** and turn on **Allow Running Scripts**.+2. Create a shortcut, add the **Run Shell Script** action, and replace its text with the command+ below (see **Command line**), using your token. Name the shortcut, for example "Avatar Smile".+3. Run it once with the ▶ button to check that the Live page changes.+4. In the shortcut's details, choose **Add Keyboard Shortcut** and press the keys to use.+5. Duplicate the shortcut for each expression and change `smile` in the command.++macOS runs these keyboard shortcuts through the Services menu, so they do not fire in every+app: in testing they worked with OBS in front but not with Finder. Turning on **Use as Quick+Action → Services Menu** in the shortcut's details may help. For keys that work in any app,+use a hotkey tool such as Raycast or Hammerspoon to run the same command, or a Stream Deck.**Stream Deck**: use a plugin action that sends web requests in the background, set it toPOST with the same URL, header and JSON body, and assign one button per expression. The