AniCraft User Guide 0.3.0

Symbols and the Library

Symbols are reusable pieces of artwork with timelines of their own. You draw something once, keep it in the Library and place it as many times as you like. Change the symbol and every copy changes with it. This chapter covers the three kinds of symbol, editing them, setting up their instances, and organising the Library.

Shortcuts are written the Windows and Linux way. On macOS, use ⌘ (Command) for Ctrl and ⌥ (Option) for Alt: Ctrl+E is ⌘E.

Symbols and instances

A symbol lives in the Library. Each copy of it on the stage is an instance. Instances share the symbol's artwork, but each one has its own position, size, rotation, colour effect and, for movie clips and buttons, its own name, filters and blend mode.

Symbols are also what you animate with classic and motion tweens, and what you join with the Bone tool.

The three kinds

KindHow it playsGood for
GraphicIts timeline keeps step with the timeline it's placed on. Frame 5 of the scene shows frame 5 of the graphic.Animation you want to scrub and time exactly: walk cycles, lip sync, background loops.
Movie clipPlays its own timeline on a loop from the moment it appears, whatever the parent timeline does.Independent animation, and anything with filters, blend modes or an instance name for scripts.
ButtonShows its Up frame, and its Over, Down and Hit frames as the pointer moves over and presses it in Test Movie and HTML export.Clickable buttons.

You can change a symbol's kind at any time: select an instance and change Type in Properties, or change Type in the Library's item properties.

Making a symbol

To turn artwork into a symbol:

  1. Select the artwork. It can be on several layers.
  2. Choose Modify › Convert to Symbol… (F8), or click Convert to Symbol at the bottom of Properties.
  3. Type a Name, choose a Type (Movie clip, Button or Graphic), and choose the Library Folder it goes into. The first time, the type is Movie clip, as in Animate; after that the dialog offers the type and folder you chose last.
  4. Press OK.

The artwork is replaced by an instance of the new symbol. If you selected artwork on several layers, the symbol keeps those layers inside it, and the instance goes on the topmost one. Names are unique within a folder: if the name is taken, the dialog shows the name the symbol will get instead. The next time, the dialog offers the type and folder you used last.

You can also make symbols by importing (see Importing into the Library).

Editing a symbol in place

To edit a symbol, open it in place:

The rest of the stage dims, and the timeline shows the symbol's own layers and frames. The edit bar above the stage shows where you are, for example Scene 1 › Ball. Every tool works inside the symbol just as it does on the stage, including merge drawing, onion skin and Edit Multiple Frames.

To go back, click the scene name in the edit bar, press Ctrl+E again, double-click an empty part of the stage, or choose Edit › Edit Document. If you've opened a symbol inside another symbol, click any name in the edit bar to go back to that level.

Undo takes you back to the symbol where a change was made. A rotated instance opens upright for editing.

Buttons

When you edit a button, the timeline names its first four frames Up, Over, Down and Hit. To make a working button:

  1. Convert your artwork to a symbol with the Button type.
  2. Double-click the instance to edit it.
  3. Add a keyframe (F6) on the Over, Down and Hit frames, and change the artwork on each. The Hit frame is never seen. It's the area that answers the pointer, and the stage draws it translucent over the other frames while you edit.
  4. Go back to the scene and choose Control › Test Movie (Ctrl+Enter) to try it. Test Movie's Show hit areas checkbox shows where each button answers.

To make the button do something when clicked, see Interactivity.

Instance properties

Select an instance and Properties shows its settings. The title says what it is, such as "Graphic: Ball", with its instance name if it has one.

With several instances selected, any row where they differ says mixed. Changing it sets all of them.

Swapping a symbol

To show a different symbol in an instance's place, select the instance and click Swap… next to Symbol in Properties, then pick the new symbol. The instance keeps its position, transform, colour effect, blending, filters, looping and instance name. Swap several selected instances at once the same way.

For a placed bitmap, Swap… next to Bitmap does the same: the bitmap keeps its position and transform and takes on the new image's size. A shape filled with a bitmap keeps its outline.

The Library panel

The Library lists everything your document can reuse: symbols, bitmaps (imported images) and sounds. It shares its space in the right-hand dock with the Movie Explorer. Choose Window › Library to bring it to the front.

The Library panel with folders of symbols, bitmaps and sounds, and a preview of the selected item

Each row shows the item's name, what it is (a symbol's kind and length, a bitmap's size, a sound's length) and a Uses count: how many places in the movie use it.

Select an item to see a preview under the list: a symbol's first frame, the bitmap, or a sound's waveform with a play button. Below the preview are the item's properties:

Placing items

Both work inside a symbol you're editing too.

Folders

Deleting a folder that holds items asks first, and its items go with it.

Renaming, duplicating and deleting

Sorting and searching

Use Sort to order the list by name, type, use count or date added. Click it again to switch between ascending and descending. Type in Search to find items by name; folders that hold a match open to show it.

Cleaning up unused items

An item is unused when nothing in any scene reaches it, directly or through other symbols. Symbols with a linkage class count as used. In the More menu:

Copying between documents

To use a symbol in another document, copy an instance of it and paste it there:

  1. Select the artwork on the stage and choose Edit › Copy (Ctrl+C).
  2. Click the other document's tab (see Document tabs).
  3. Choose Edit › Paste (Ctrl+V).

Everything the artwork uses comes along into the other document's Library: its symbols, the symbols inside them, images that fill its shapes, and sounds on the symbols' frames. Copied frames (Copy Frames and Paste Frames) bring their Library items in the same way.

Importing into the Library

To add files to the Library without putting them on the stage:

The Library takes:

File › Import › Import to Stage… (Ctrl+R) adds the file to the Library and places it on the stage as well. Images and sounds are stored inside your .anicraft file, so the document stays complete if you move it. See Images and sound for more.

Sounds in symbols

Symbols can hold sounds on their own keyframes, just as the main timeline does:

Volumes multiply down through nested symbols. Sounds inside symbols play in playback, in Test Movie and in exports, but button sounds stay out of the soundtrack in audio and video exports. See Images and sound for sync, looping and effects.

9-slice scaling

9-slice scaling lets you resize a button or a panel without stretching its rounded corners. Four guides divide the symbol into nine parts. When an instance is scaled, the corners stay as drawn, the edges stretch in one direction, and the centre stretches both ways. Strokes keep their width.

To set it up:

  1. Select the symbol in the Library, or an instance of it on the stage.
  2. Tick Enable guides for 9-slice scaling in the Library's item properties, or under Scaling in Properties.
  3. Open the symbol for editing (double-click an instance). The four guides show as dashed lines across the stage. Drag them with the Selection tool, or type their positions in Properties (Guides x and Guides y).

Rotation and skew are applied after the 9-slice scaling. Symbols, text and bitmaps nested inside scale normally, as in Animate. If an instance is too small for its corners, they shrink together in proportion. If you turn the guides off, AniCraft remembers where they were.

The HTML canvas export doesn't do 9-slice scaling yet. It scales such instances as a whole, and its report says so.

Data tables

The Library also keeps data tables: numbers imported from a CSV, TSV or JSON file that can drive an instance's position, size, rotation, opacity or the frame it shows. See Data-driven animation.

Not there yet