Find and Replace over text (text fields, labels, layer and instance names,
frame scripts), fonts, colours, symbols, sounds and bitmaps, scoped to the
scene (with the symbols it uses) or the document; a bounded linear-time
regex engine; Replace and Replace All as one undo step, asking above 100
places; going to a hit opens symbols in place through the instances that
lead to them. The Movie Explorer tree is made only for open rows, paged,
with show filters and a text filter.
24,000 elements: text search 8.8 ms, colour 3.5 ms, Replace All of
12,500 colours 25.5 ms; explorer fully open 144,112 rows in 45 ms.
Hit testing keeps main's pick_index, picking in the symbol open in place. Onion skin and
Edit Multiple Frames switch off while a symbol is open in place; the multi-frame listing
evaluates the open timeline. A double-click on a Library symbol opens it for editing, as in
Animate. Raw point edits keep a stroke's StrokeStyle (tested).
The session's selection becomes a set of (layer, element) references at the
playhead (ADR 0044, issue #42). Commands that edit the selection run their
single-layer body once per layer that has selected items (move, delete,
duplicate, arrange, transforms, colour effects, filters, break apart, raw
merges); align/distribute, the Free Transform box, copy and snapping read
across the layers; paste keeps each copied layer; Convert to Symbol keeps the
layers inside the symbol and lands the instance on the topmost. The marquee
and Select All gather from every visible, unlocked layer, cutting raw parts
per layer. Locked or hidden layers are never selected. A selection on the
active layer alone behaves exactly as before.
An armature layer holds symbol instances joined by bones (a joint on the
parent instance, the child turning about it). Keyframes store poses as
joint angles, tweened with the span's easing and applied by forward
kinematics in evaluate_layer_elements, so every export, the GPU stage and
the player see them. bone.add/remove/set_limits/pin/pose/solve/info
commands; IK by cyclic coordinate descent with joint limits and pins.
path.bend_segment bends the segment under the pointer through the dragged
point and every raw copy of that edge with it; raw.move_point moves a corner
or end with every raw shape that shares it (splitting an edge another shape
ends on), snapped within a distance to points, lines and fill edges;
element.translate takes snap/from; raw.select_rect cuts raw shapes at the
marquee and selects the parts inside plus objects wholly inside, with the cut
provisional (no undo step, taken back when the selection lets go of it);
raw.merge and raw.hit. Plug-ins may call the raw namespace.
ADR 0013 tier 1: a keyframe can keep a script verbatim (FrameScript::Source,
text and language) beside actions and plug-in frame scripts; symbols keep a
linkage class and the document a document class, as text. The XFL importer
reads <Actionscript> frame scripts in scenes and symbols, linkage attributes
and the publish profile's language and document class, and reports them as
kept, not run. script.set/clear/list/set_class commands; nothing runs them.
New corpus package 'scripts' with golden renders.
A camera layer kind (at most one per scene, always on top) whose keyframes hold
the camera as an element, so it tweens with classic and motion tweens. The
movie (evaluate, the player, every export) is the stage seen through it; the
editing view stays in stage space. Layer depth gives parallax. Commands:
camera.add/remove/set/info and layer.set_depth (ADR 0027).
Commands: actions.set/clear/list, instance.set_name, control.test_movie
(Ctrl+Enter; headless it plays the movie and reports its output), and
file.new_sample {which: interactive}. Frame-script plug-ins (kind
frame-script, entry points) run on enter-frame with Limits::frame_script:
20 M instructions shared per frame, 100 ms, ops player/action/actions/log,
no commands; plugin.run refuses them.
App: Test Movie window (player at the document frame rate, pointer to
buttons, Output panel, restart/pause/step, snapshot of the document),
Actions panel (F9) with structured action lists for keyframes, movie clip
timelines and button/movie clip events, instance name and events in
Properties, an 'a' mark on keyframes with actions.