Skip to content
Limited timeStarter is now $9 a month instead of $20.See plans
charmotion

Generating a Complete Rive Character Set and Transparent Video Exports in One MCP Session

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: Generating a Complete Rive Character Set and Transparent Video Exports in One MCP Session, with Charmotion demo characters

Connect a character MCP server to your assistant, send one finished character image, and ask for every animation you need in a single create_character_set call. Then call export_videos for transparent WebM, MOV, MP4 and GIF files. Exports use no credits, and the run returns one Rive file with code and video you can ship.

Key takeaways

  • One MCP session can take a character image to a Rive file and the video formats you need.
  • Idle is free, and each of the ten optional animations costs 1 credit.
  • Video exports run from export_videos in about a minute and use no credits.
  • Chrome, Edge and Firefox show WebM alpha, while Safari has been reported to ignore it, so keep a MOV fallback.
  • Check every transparent export over a colored background before it ships.

Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.

What does one MCP session produce for a character?

Knowing how to generate a full character set and video exports from one MCP session starts with the outputs, because every file comes from the same character and the same animation choices.

A finished set contains one Rive (.riv) file and the code and documents that go with it:

  • CharacterViewModelMachine, a Data Binding view model with a number property named mood.
  • CharacterStateMachine, with a number input named mood that the app sets to switch states.
  • LaunchStateMachine, present only when launch was picked. It plays the launch animation once, then moves to idle.
  • Paste-ready web, React and SwiftUI code, a README, and an AI_README for coding assistants.
  • A transparent poster for each animation.

The video files come from the same run: MP4 at 1080x1080 and 60 fps, GIF, transparent WebM (VP9 alpha), transparent MOV (HEVC alpha), and a 9:16 launch MP4. You do not need a second tool to get them, which is the main reason to do the whole job in one session. Character animations cost credits, while exports do not.

How do you connect the MCP server to your assistant?

The Charmotion MCP server runs at https://charmotion.app/mcp over Streamable HTTP and uses OAuth sign-in, so there is no API key to copy. It works with Claude, Cursor, VS Code, Codex and other assistants that support remote MCP servers. Each client keeps its server list in its own file, so check that client's MCP page for the exact path. A typical entry looks like this:

{
  "mcpServers": {
    "charmotion": {
      "type": "http",
      "url": "https://charmotion.app/mcp"
    }
  }
}

Sign in when the client asks. Without an account you get animated previews and guide search. Designs and character animations draw on your plan, so call get_account before a large run to see what is left.

Keep the whole job in one thread. The character ID from the first step then stays in front of the assistant, and you do not have to re-upload the image between steps. For a wider walkthrough of MCP setup with a logo, see how to animate a logo or character from Claude, Cursor or VS Code with MCP.

Which animations go in the full set, and what does each cost?

Start with the image. The check runs first and accepts one finished, coloured character facing the viewer with visible eyes and mouth. Sketches, photos, groups and busy scenes are refused, and a refused image is not charged. To draw a new character instead, design_character costs 1 credit.

Then pick the animations. Idle is always included for free. Each of the ten animations below costs 1 credit, and launch, happy, wave and loading are preselected.

AnimationLengthMood numberDefault
Idle4.0 s loop0Free, always included
Launch2.6 s, plays onceNot a mood (LaunchStateMachine)Preselected
Happy1.6 s1Preselected
Wave3.0 s2Preselected
Thinking2.4 s3Optional
Sad3.0 s4Optional
Loading1.2 s5Preselected
Listening3.0 s6Optional
Talking1.6 s7Optional
Sleeping4.0 s8Optional
Attention1.4 s9Optional

A designed character with all ten optional animations costs 11 credits: 1 for the design and 10 for the set. Idle adds nothing. Converting a busy or 3D-looking image to the house style costs 1 more credit, and you choose which version to animate.

Two rules keep the bill predictable. An animation the engine can't make gives its credit back automatically, and the review step can redo an animation before delivery. Animations added later with add_animations cost credits only for what is new.

Free accounts can use their one-time credits for AI designs only, so character animations need a paid plan. Credit amounts and plan prices are on the pricing page.

How do you export transparent WebM, MOV and MP4 in the same session?

Call export_videos once the set exists. It takes about a minute and uses no credits, so you can request the formats again after any change. Use this list to pick the file for each placement:

  • MP4 (1080x1080, 60 fps): posts and pages where a solid background is fine.
  • GIF: quick loops in chat and places where the file must play anywhere.
  • Transparent WebM (VP9 alpha): Chrome, Edge and Firefox over your page content.
  • Transparent MOV (HEVC alpha): Safari, which has been reported to ignore WebM alpha.
  • 9:16 launch MP4: Stories, Reels and vertical ads.

If you have frames from another tool, FFmpeg can build a transparent WebM. Number the PNG files, set the frame rate on the input, use the yuva420p pixel format and drop audio:

ffmpeg -framerate 60 -i frame_%04d.png -c:v libvpx-vp9 -pix_fmt yuva420p -auto-alt-ref 0 -b:v 2M -an output.webm

Keep yuva420p. Without it, the alpha layer is discarded and the background turns black or white. The -auto-alt-ref 0 flag switches off alternate reference frames, which can cause rendering glitches or strip alpha in some encodes. Treat -b:v 2M as a starting value and raise it if edges look soft.

For a two-pass encode, run the same options twice:

ffmpeg -i input.mov -c:v libvpx-vp9 -pix_fmt yuva420p -auto-alt-ref 0 -b:v 2M -pass 1 -an -f null /dev/null
ffmpeg -i input.mov -c:v libvpx-vp9 -pix_fmt yuva420p -auto-alt-ref 0 -b:v 2M -pass 2 -an output.webm

On Windows, replace /dev/null with NUL. If the source is already a VP9 WebM with alpha, put -c:v libvpx-vp9 before -i. Otherwise FFmpeg's native VP9 decoder can drop the alpha and give you black frames. Some re-encodes also need -metadata:s:v:0 alpha_mode=1 so that players read the alpha flag.

For a MOV with alpha from an editor, export ProRes 4444 with alpha and convert it to WebM with the commands above. If you already have the HEVC alpha file from export_videos, use that for Safari rather than converting. To turn a Lottie you already have into a Rive file, see converting Lottie to Rive.

How do you check transparent exports before you ship them?

Test on a bright, busy background, not on white. Edges that look clean on white often show a halo on a colored page.

  1. Open the transparent WebM in Chrome or Firefox over a colored page. A black or white box means the alpha was lost.
  2. Open the transparent MOV in Safari. If the WebM shows a box there, serve the MOV to Safari visitors.
  3. Load the .riv in a Rive runtime. Runtimes are open source and play any .riv file. If a file will not load, confirm the extension first, because editor backups saved as .rev are not loadable by runtimes.
  4. Compare the mood numbers in your code with the table above. A wrong number shows the wrong state rather than an error, so test each mood once.
  5. Match each poster and video to the animation you meant to ship, since every animation has its own poster.

Serve one file per placement instead of every format everywhere. A Chrome visitor needs the WebM and a Safari visitor needs the MOV, so a page with both sources adds weight without adding quality. For ideas on serving transparent video across browsers, read transparent video on websites, including Safari.

If your team also builds in the Rive editor, note that Rive's Free plan exports play a Rive splash screen and paid plans export without it. The details are in Is Rive free?

How do you connect the moods to app states?

Set the number rather than firing a trigger. Characters have no one-shot triggers, so there is no success, error, yes, no, enter or exit input. Show a success with happy (1) and an error with sad (4), then return to idle (0).

Moods blend into each other, so a switch from loading (5) to happy (1) reads as a transition, not a cut. Some moods show small accents: Z z z while sleeping, thinking dots, an exclamation mark for attention and sparkles when happy. They are on by default. Set the boolean accents to false to hide them for a plainer product or a support screen.

Read the mood wiring from get_character_set rather than writing your own mapping. The app sets the mood number, and the Rive file does the rest. For more on building state-driven characters from scratch, see Rive character animation examples and what each one teaches.

Setup notes for each assistant are on the MCP server page.

How to generate a full character set and video exports from one MCP session

  1. Connect the server. Add https://charmotion.app/mcp to your assistant as a remote MCP server using Streamable HTTP, then sign in with OAuth. No API key is needed.
  2. Check your balance. Call get_account to see the credits left on your plan before starting a large run.
  3. Create or upload the character. Use design_character to draw a character with AI for 1 credit, or send your own finished, coloured character image facing the viewer with visible eyes and mouth.
  4. Choose the animations. Pick from launch, happy, wave, loading, thinking, sad, listening, talking, sleeping and attention. Each costs 1 credit, and idle is included free.
  5. Create the full set. Call create_character_set with your chosen animations to build the Rive file, code and poster set in one run.
  6. Read the set and the videos. Call get_character_set for download links and the AI_README, then call export_videos for transparent WebM and MOV, plus MP4 and GIF. Exports take about a minute and use no credits.
  7. Check the exports. Play the WebM in Chrome or Firefox and the MOV in Safari over a colored background, and confirm each mood number in your code matches the file.

Frequently asked questions

Can one session add animations later without rebuilding the character?

Yes. Call add_animations on the same character. Only the newly added animations use credits, and the character you already have stays as it is, so the mood numbers in your code keep working. Check get_account first to confirm the balance covers the additions.

Why does a transparent WebM look like a box in some browsers?

The usual cause is the pixel format. Without yuva420p the transparent layer is discarded and replaced with black or white. Safari has also been reported to ignore WebM alpha, so give Safari visitors the MOV with HEVC alpha and everyone else the WebM.

Do I need FFmpeg if the export files are already transparent?

No. FFmpeg is a fallback for frames you encoded elsewhere, such as your own PNG sequence. For the files returned by export_videos, use them directly and test them in the browsers your audience uses.

What happens to the credit if an animation fails?

The credit comes back automatically when the engine cannot make an animation. A review step also checks each animation before delivery and can redo one that misses, so you usually receive a usable set without spending extra credits.

Sources

Related guides