AniCraft User Guide 0.3.0

Exporting and Publish

Get your animation out of AniCraft: as pictures, animated images, video, a web page, Lottie, a sprite sheet or a soundtrack. Export one format at a time from File › Export, or set up several once in Publish Settings and write them all with one key.

On a Mac, read ⌘ wherever this chapter says Ctrl (so Ctrl+Shift+F12 is ⇧⌘F12), and ⌥ for Alt.

Every format at a glance

FormatFile › Export itemGood for
PNG imageExport Frame as PNG…A still of the current frame
SVG imageExport Frame as SVG…A still of the current frame as a vector drawing
PNG sequenceExport PNG Sequence…One PNG per frame, for compositing and editing tools
SVG sequenceExport SVG Sequence…One SVG per frame (frame_00001.svg, …), for programs that read vector frames
Animated GIFExport Animated GIF…Short loops anywhere; 256 colours
Animated PNGExport Animated PNG…Full colour and real transparency, for the web and chat apps
Animated WebPExport Animated WebP…Like animated PNG, lossless and usually smaller
VideoExport Video…WebM or MP4, made by ffmpeg installed on your computer
Sprite sheetExport Sprite Sheet…Frames in a grid on one PNG plus a JSON frame map, for game engines
LottieExport Lottie Animation…A JSON animation for websites and apps
HTML canvasExport HTML Canvas…One web page that plays the movie, buttons and scripts included
AudioExport Audio…The soundtrack as a WAV file

The picture exports (PNG, sequences, GIF, animated PNG and WebP, video and sprite sheets) draw exactly what the stage shows: tweens, masks, filters, blend modes, colour effects, text and the camera included. SVG, Lottie and HTML canvas come very close, and say what they can't write. Guide layers never export, and layers shown as outlines on the stage export as normal artwork.

Exporting one format

  1. Choose the item from File › Export.
  2. Pick where to save it. For Export PNG Sequence… you pick a folder.
  3. AniCraft exports and the status bar says where the file went, with its size.

File › Export uses the usual settings: the whole movie, every scene in order, at 100 %, and the current frame for PNG and SVG stills. To choose frames, scale, looping or a background, use Publish Settings (below): you can turn on just the one format you need.

If the file is already there, AniCraft asks before replacing it. A sprite sheet asks if either the PNG or its frame map is there, and a PNG or SVG sequence asks if the folder already holds exported frames of its kind.

Notes on each format

Stills and sequences

Animated images

Video

AniCraft makes video with ffmpeg, a free program you install yourself from ffmpeg.org. AniCraft doesn't bundle a video encoder.

Sprite sheet

One PNG with the frames in a grid, and a .json frame map beside it in the common "JSON hash" layout, with each frame's rectangle, size and duration. In Publish Settings you can set the Columns (or Auto), Padding and Scale. It is transparent unless you turn on the stage colour.

Lottie

A Lottie JSON animation for websites and apps. Shapes, strokes, solid and gradient fills, colour effects, opacity and masks come across, and every frame shows what AniCraft shows.

Tweens become Lottie keyframes with Lottie's own eases, so the file stays small and the motion is smooth on any screen: No Ease, Classic Ease, Quad, Cubic, Back and Bounce, Bézier handles and your custom curves come across exactly (a custom curve of several points becomes a key per piece). Objects that move, turn or scale keep their shape and move as a whole. Where Lottie has no matching ease (Elastic, Sine, Quart, Quint and Circ, motion along a curved guide, a tween inside a tweening symbol), that motion is written frame by frame instead: still exact at every frame, and the status bar says so.

Some things can't be written exactly; the status bar names them after the export:

HTML canvas

One self-contained web page that plays in any modern browser. Open it from your disk, put it on a server or send it as one file.

Audio

The movie's soundtrack as a WAV file: every sound as it plays in the movie, with sync, loops, effects and layer volumes. Choose a sample rate (22,050 to 96,000 Hz) and a bit depth (16-bit, 24-bit or 32-bit float) in Publish Settings. Muted layers and button sounds stay out. If no sound plays in the frames you export, the file is silent and the status bar says so.

Publish Settings

File › Publish Settings… (Ctrl+Shift+F12) opens a window that stays open while you work. Your choices are saved in the document, and every change can be undone.

The Publish Settings window, with the formats listed on the left

  1. On the left, tick each format you want to publish. Click a format's name to see its options.
  2. On the right, set its Output name and options:
FormatOptions
HTML canvasPage title, Include sounds, Scale to the browser window
Animated GIFFrames, Scale, Loop
Animated PNG, Animated WebPFrames, Scale, Playback (Loop forever or a number of plays), Stage colour as background
VideoFrames, Scale, Include sound
LottieFrames, Stage colour as background
Sprite sheetFrames, Scale, Columns, Padding, Stage colour as background
PNG sequenceFrames, Scale, Stage colour as background
PNG imageFrame (or Playhead), Scale, Stage colour as background
SVG imageFrame (or Playhead)
AudioFrames, Sample rate, Bit depth

Frames is All (every frame of every scene, in order) or a range you set. Frame numbers count through the whole movie, scene after scene.

Output names

Output names are relative to the folder your document is saved in, and {name} stands for the document's name. The defaults are {name}.html, {name}.gif, {name}_animated.png, {name}.webp, {name}.webm, {name}.json, {name}_sheet.png, {name}_frames (a folder), {name}.png, {name}.svg and {name}.wav. Default puts a format's usual name back.

Presets

Save settings you use often as a preset, and apply them to any document:

Presets live in your preferences, not in the document.

Publish

Choose File › Publish (Shift+F12), or press Publish at the bottom of Publish Settings.

  1. If the document has never been saved, AniCraft asks you to save it first, since the files go beside it.
  2. If any output is already there, AniCraft asks once before replacing it. Files that this session published itself are replaced without asking again.
  3. The formats publish in the background, so you can keep working. A window shows each format's progress, with Cancel.
  4. When it finishes, the Publish report lists, for each format, what it wrote, what it skipped and why (video in a browser, audio with no sounds), what it left out, or why it failed.

One failing format doesn't stop the others.

In the web version

Exports and Publish download their files. Publish sends several files as one ZIP named after the document. Video export isn't available in a browser, because it needs ffmpeg; export a GIF, animated PNG or WebP, a PNG sequence or an HTML page instead. A PNG sequence downloads each frame on its own, and your browser may ask once to allow several downloads.

From the command line

Every export and Publish also run without opening the window, for batch work and build scripts. See Working headless.

Not yet