AniCraft User Guide 0.3.0

Images and sound

This chapter covers bringing pictures, SVG drawings and sounds into AniCraft, and putting sound to work on the timeline: sync, loops, fades, volume and sounds inside symbols and buttons.

On a Mac, read ⌘ wherever this chapter says Ctrl, and ⌥ for Alt.

What AniCraft can bring in

KindFilesComes in as
ImagesPNG, JPEGA bitmap in the Library, placed on the stage as a bitmap
DrawingsSVGEditable shapes, groups, gradients, masks and text
SoundsWAV, Ogg Vorbis, MP3A sound in the Library, played from a keyframe
VideoMP4, MOV, WebM, MKV, AVI and whatever else your ffmpeg readsFrames on a layer, or a reference layer to trace over

Anything else is turned away with one line in the status bar that says what AniCraft takes.

Importing images

Onto the stage

  1. Click the frame where the image should appear.
  2. Choose File › Import › Import to Stage… (Ctrl+R, ⌘R on macOS) and pick a PNG or JPEG.
  3. The image arrives on a new layer named after the file, centred on the stage and selected.

It goes into the Library at the same time. From here it is ordinary artwork: move, scale, rotate, fade, tween and mask it like anything else. It stays smooth at every size, on the stage and in every export.

Images are stored inside your .anicraft document, so you can move the document to another computer without the original files. JPEGs are converted to PNG without losing quality, which can make the document larger than the JPEG was.

Into the Library only

Choose File › Import › Import to Library… to add an image without placing it. Then, in the Library:

Every copy shares the one image, so placing it many times costs nothing extra.

Smoothing

Select a bitmap in the Library to see its properties. Turn off Allow Smoothing for pixel art: the bitmap then keeps hard pixel edges on the stage, in renders, in SVG and in the HTML page.

Swap Bitmap

To show a different image in the same place, select the placed bitmap and use Swap… on the Bitmap row of Properties. Pick another bitmap from the list. A placed bitmap keeps its position and transform and takes the new image's size; a shape painted with a bitmap fill keeps its outline and shows the new image inside it. With several bitmaps selected, they all change.

Trace Bitmap

To turn a picture into shapes you can edit, select the placed bitmap and choose Modify › Bitmap › Trace Bitmap…. Each area of colour becomes a filled shape in its place, as one undo step, and the shapes are selected. Pixels under half opacity stay empty.

The shapes are raw shapes made of lines and quadratic curves, and they fit together without gaps. Where raw shapes on the same layer touch them, they merge as any drawing does. A large photo at a low threshold makes a great many shapes; the trace stops at 20,000 and asks for a higher threshold or minimum area. A picture that is nearly all speckle (more than two million separate areas of colour) is refused the same way. A bitmap of up to 4096 × 4096 pixels can be traced; a large one can take a few seconds.

Convert to Bitmap

Modify › Convert to Bitmap draws the selection, as it looks at the playhead, into a new bitmap in the Library (named Bitmap 1, Bitmap 2, …) and puts that bitmap where the selection was, on the topmost of its layers. The bitmap covers the selection's bounds on whole pixels, at one pixel per stage unit, up to 4096 × 4096 pixels. Undo brings the artwork back.

Importing SVG drawings

SVG files from illustration tools come in as artwork you can keep editing, not as a flat picture.

  1. Click the frame where the drawing should start.
  2. Choose File › Import › Import to Stage… (Ctrl+R) and pick the .svg file.
  3. The drawing arrives on a new layer named after the file, centred and selected, as one undo step.

What comes across

What doesn't come across yet

AniCraft lists these in the status bar after the import, instead of guessing:

An SVG as a symbol

File › Import › Import to Library… with an SVG makes one graphic symbol, named after the file, that holds the drawing's layers. Place it as often as you like; edit the symbol and every copy changes. See Symbols and the Library.

Dropping files from your desktop

You can drag files straight from your file manager onto AniCraft's window. Each drop is one undo step, however many files it brings, and a highlight shows where they will land.

Drop it onWhat happens
The stageDrawings and images go onto the active layer at the playhead, centred where you let go. A sound goes onto the active layer's keyframe.
A layer's frame in the timelineA sound goes onto that keyframe. An image or drawing goes onto that layer at that frame, in a new keyframe if there isn't one.
The LibraryThe files go into the Library folder under the pointer. An SVG becomes a graphic symbol.

A drawing whose clipping needs several layers can't sit on one layer, so dropped on the stage it arrives as a graphic symbol instead. Locked layers, folders and the camera layer say why they won't take a drop.

On the desktop, AniCraft learns exactly where you dropped once you move the pointer again; if you don't, the drop lands in the middle of the view. Dropping .anicraft, .fla or .xfl files opens them instead (see Opening Animate files).

Importing sounds

AniCraft reads WAV, Ogg Vorbis and MP3 files.

Sounds are saved inside the document exactly as imported.

In the Library, select a sound to see its waveform with a play button. Drag it onto the stage to put it on the active layer's keyframe, or use Place on Timeline. Deleting a sound that keyframes use asks first, and you can undo it.

Importing video

Use video as reference: trace over film (rotoscoping), or keep footage under your drawing to match its timing.

AniCraft reads video with ffmpeg, a free program you install yourself. AniCraft has no video decoder of its own, so nothing happens to your files that ffmpeg doesn't do. It is the same ffmpeg that Export Video uses. If it isn't installed, the Import Video window says so: get it from ffmpeg.org or your system's package manager so it is on your PATH, or set the environment variable ANICRAFT_FFMPEG to the full path of the ffmpeg program.

  1. Move the playhead to the frame where the video should start.
  2. Choose File › Import › Import Video… and pick the file.
  3. The window shows the video's size, length and frame rate. Choose how to bring it in:
Import asWhat you getUse it when
Frames in the documentThe frames become bitmaps on a new layer, one keyframe each, with the sound on a layer belowThe clip is short and should be part of the movie
Reference layer for tracingA locked guide layer, right under the layer you are on, that shows the video beneath what you drawYou trace or time against footage that should not be exported
  1. Press Import (or Add Reference Layer).

For a long or large video the window starts on Reference layer, which costs nothing in the document.

Frames in the document

Each frame of the video lands on its own keyframe at the document's frame rate. A 2-second clip in a 24 fps document gives 48 keyframes, whatever the video's own frame rate was.

OptionWhat it does
Start atSeconds into the video to begin at
LengthSeconds of video to take; 0 takes it to the end
Frame stepOne picture every this many frames. 2 animates on twos: half the pictures, each held for two frames
Largest sizeThe pictures' longest edge in pixels. A smaller video is never enlarged
Import the sound trackThe video's sound goes on a layer of its own as a stream sound, so it keeps time with the frames

Under the options the window says what will come in, for example 48 pictures of 1280 × 720 from frame 1, about 169 MB in memory while you edit. One import takes at most 2000 pictures or 1 GB of pictures. If the video is longer, the window tells you before you start that the rest will be left out. Raise the frame step, lower the size or shorten the length to fit more of it, or use a reference layer.

While ffmpeg reads the frames a progress window shows how far it is. Cancel stops it and leaves the document exactly as it was. The whole import is one undo step.

The pictures are kept in a Library folder named after the video. They are ordinary bitmaps: you can delete keyframes you don't need, swap a bitmap, or trace one into shapes on a layer above.

A reference layer for tracing

The video shows on the stage under your artwork and follows the playhead as you scrub and play. The layer goes right under the layer you are on (under its folder, if it is in one), so what you draw sits on the video and artwork further down, such as a background, stays behind it. Drag the layer up or down like any other. It is a guide layer, so it is never in the movie, in Test Movie or in any export. It is locked, so you can't draw on it by mistake. Draw on the layers above it.

The video stays a file on your computer. The document remembers only where it is, so keep the file where it was, or relink it. Frames are read as you go and kept within 256 MB of memory; the first time you jump to a new place the picture arrives a moment later.

What video import doesn't do yet

Sounds on keyframes

As in Animate, a sound belongs to a keyframe. Select the keyframe and open the Sound rows in Properties.

  1. Sound: pick one from the Library, or None to take it off.
  2. Sync: how it plays (see below).
  3. Repeat: play it a set number of times in a row (Repeat with a count), or choose Loop to play it again and again.
  4. Effect: a fade or pan (see below).

Below the rows you see the sound's length, sample rate, channels and format.

Sync

SyncWhat it does
EventPlays in full from this keyframe, independent of the timeline. Good for clicks and hits.
StartLike Event, but doesn't start again if the sound is already playing.
StopStops this sound.
StreamTied to the frames: plays over this span and follows the playhead. Use it for dialogue and lip sync.

A looping Event sound plays to the end of the movie; a looping Stream sound to the end of its span.

Waveforms on the timeline

The timeline draws each sound's waveform over its frames, so you can line up keys with beats and syllables. The waveform follows the sound's effect, so a fade-out shows as a shrinking wave.

Effects and the envelope

The Effect menu has Animate's presets: None, Left channel, Right channel, Fade left to right, Fade right to left, Fade in and Fade out. Each is shaped over the time the sound is actually heard.

For your own volume curve, press Edit… next to Effect (or choose Custom). The Edit Envelope window shows each channel's waveform with its volume line:

  1. Click a channel to add a volume point (up to 16).
  2. Drag a point to move it, or right-click it to delete it.
  3. Or select a point and type its time and its left and right levels.
  4. Press Play to hear the sound with its envelope.

Times can read in frames or seconds, and you can zoom in, out or fit the whole sound. Editing a preset turns it into Custom.

Layer volume and mute

A layer that holds sounds has a Volume (0–100 %) and Mute in Properties, and a speaker toggle in its timeline row. Volume applies to the layer's sounds and to sounds inside the symbols on it. A muted layer is silent while you work and in every export, which is handy while you time other tracks.

Convert Audio to Keyframes

A sound can animate for you. Convert Audio to Keyframes measures how loud the sound is on each frame and writes that onto a property of an object: a speaker that pulses with the beat, a logo that brightens on every hit, a jaw that drops when a character talks.

Convert Audio to Keyframes: the star's scale follows a beat, previewed on the timeline

  1. Put the sound on a layer and the object on another layer. Stream sync is best: the sound then stays on its frames. With Event or Start sync the dialog still works, and a line under Frames reminds you that the keys can drift from what is heard after a jump on the timeline.

  2. Choose Modify › Timeline › Convert Audio to Keyframes…, or select the sound's keyframe and press To Keyframes… in Properties.

  3. Pick the Layer that gets the keys (and the Object, when the layer holds several).

  4. Pick the Property, and its value In silence and At the loudest:

    PropertyThe values are
    Scale, Scale X, Scale Ypercent of the object's own size (100 % is as it is)
    Alphaopacity in percent
    X offset, Y offsetpixels from where the object is (negative Y is up)
    Rotationdegrees from how the object is turned
    First framea frame of a graphic symbol: louder shows a later frame, held as a single frame
  5. Shape the movement:

    • Threshold ignores everything quieter than this share of the loudest frame. Raise it so background noise doesn't make the object tremble, or so only the loud beats count.
    • Smoothing averages each frame with the frames either side. 0 follows every flick; higher values are calmer. The beat stays on its frame.
    • Channel (stereo sounds) measures the left side, the right side or both.
    • Key every 2 frames animates on twos, and so on.
  6. Choose what to Write: Keyframes on the layer, as if you had set each by hand, or a Motion tween curve, which keeps the span whole and shows in the Motion Editor (a motion tween is made for an object alone on its layer).

  7. Press OK. It is one undo step.

Everything is previewed while you change it. The graph shows the sound's loudness frame by frame, the threshold, the value the keys will follow (the white line) and a tick where each key lands; the stage and the timeline show the keys themselves. Click or drag in the graph to see another frame on the stage. Clear Preview to compare with the document as it was.

Scale and rotation turn about the object's transformation point (the middle of a shape that has none). Keyframes that were already on the layer keep their place and take the value. After the sound ends, the layer carries on as it was. A layer shorter than the sound grows to its length.

Auto lip-sync

Auto Lip-Sync listens to speech and picks a mouth for every frame, as Animate's Lip Syncing does. It is a first pass: expect to fix some mouths by hand afterwards.

A mouth lip-synced to speech: a keyframe on the Mouth layer wherever the mouth changes

  1. Draw the mouths as the frames of a graphic symbol, one frame per mouth, and put an instance on its own layer. File › New from Template › Lip-sync mouth chart gives you a Mouth symbol with ten labelled frames to redraw.

  2. Put the dialogue on another layer, with Stream sync.

  3. Select the mouth and press Lip Sync… in Properties (beside Looping), or choose Modify › Timeline › Auto Lip-Sync….

  4. Check the Mouths. AniCraft tells five mouth shapes apart and needs a frame of your symbol for each:

    MouthSoundsFrame label it looks for
    RestsilenceRest
    Openah, as in father and catAI
    Wideee and e, and the hiss of s and tE
    Roundoh, oo and wO
    Closedm, b, p and the short stops between syllablesMBP

    Frames are found by their labels (other common names such as open, wide, round and closed work too). Choose another frame for any mouth from its menu.

  5. Silence below sets how quiet counts as silence. Hold each mouth is the fewest frames a mouth stays, so it doesn't flicker; closed lips are kept however short.

  6. Press OK. The Mouth layer gets a keyframe wherever the mouth changes, each showing one frame of the symbol (Single frame). It is one undo step.

The preview shows a row for each mouth with the frames it gets, under the sound's loudness.

How it listens: no speech recognition and nothing sent anywhere. Each frame's sound is sorted by where its energy lies (low for oo, in the middle for ah, high for ee and s), which is what tells vowels apart. It cannot tell f from s or l from d, so the chart's other mouths (FV, L, WQ, U and the consonants) are yours to place. The same sound always gives the same keys.

To fix a mouth afterwards, select its keyframe and change First frame in Properties, or move the keyframe on the timeline.

Sounds inside symbols and buttons

Sounds placed on a symbol's own timeline play too:

Buttons can have sounds on their state frames. A sound on the Over frame plays when the pointer goes over the button, and one on Down when it is pressed. As in published Animate movies, the Up frame's sound plays when the pointer leaves, and the Hit frame's when you let go over it. Button sounds play in Test Movie and the HTML canvas page, and stay out of the soundtrack: audio and video exports don't include them. See Interactivity.

Hearing it: playback and scrubbing

Volume and mute while you work

The speaker and slider in the timeline's header set how loud you hear the movie; click the speaker (or choose Control › Mute Sounds) to silence it. They are yours, not the document's: they're kept in your preferences (Preferences › Sound) and never change an export. To make a layer quieter in the movie itself, use its volume in Properties.

If there is no sound device, or it is unplugged while playing, playback carries on silently and the status bar says so; plug one in and press Enter again. A new default device (headphones plugged in) is followed on its own where the system allows.

The web version plays sound through the browser (Web Audio); the browser lets it start on your first play.

Getting sound out

Lottie animations carry no sound. See Exporting and Publish.

Not yet