an.continuity#
Open a shot from another shot’s end state (an#542).
A scene that picks up where another left off (the third scene opens on the
last frame of the bedtime scene; back to the studio as the studio scene left
it) used to rebuild that opening by hand: one set at 0 per lamp veil,
pillow head, robe and aimed musket, each read by eye off the other scene’s
actions, and a wrong value was a pop at the cut that nothing checked. A shot
now says where it continues from:
continue: studio # a shot of this scene
continue: scene.studio.md#studio # a shot of a sibling scene file
and every entity it shares with that shot (by id) opens at that shot’s final
EVALUATED state: the entity’s transform, every channel of its nodes (rotation,
swap keys, alpha, tint), and what holds it (a hand: held_by and
held_rotation; the ground: held_by: ground). The shot’s own opening
set or tween of a channel wins over the carried one.
continue_shots() resolves it before compile, as part of the scene the
compiler sees (an.stage.world.lower_scene()): the source shot is
compiled (itself lowered and continued first), evaluated at its end by the
runtime’s executable spec, and its state written into the continuing shot as
set actions at 0 and hold overrides. The source can be a later shot, or
another scene’s; a cycle is refused (ContinuityError).
>>> parse_continue("scene.studio.md#studio"), parse_continue("studio")
(('scene.studio.md', 'studio'), (None, 'studio'))
Functions
|
|
|
|
|
|
|
|
Classes
|
One entity as a shot ends: its channels |
Exceptions
|
A |
- exception an.continuity.ContinuityError(message, *, shot=None)[source]#
Bases:
ValueErrorA
continue:that cannot be resolved: an unknown shot or scene file, a cycle, or a source shot that does not compile.shotis the shot whosecontinue:it is:an validatereports it at that shot’scontinue_from; a render raises it.
- class an.continuity.EntityEnd(channels=dict(), holder=None)[source]#
Bases:
objectOne entity as a shot ends: its channels
{(target, property): value}and what holds it (the hold layer’s last holder;Nonewhen no hold layer ran).
- an.continuity.continue_shots(scene, mall, *, fps=None, project_dir=None, read_scene=None, lower_world=None, compile_shot=None)[source]#
scene(already world-lowered) with everycontinue:resolved.project_diris where a sibling scene file is read from (default: the mall’sscenesstore’sproject_dir). The seams:read_scene(an.ir.sync.read_scene()),lower_world((scene, mall, *, fps) -> scene,an.stage.world.lower_scene_world()) andcompile_shot(an.stage.compile.compile_shot()). Each source is resolved once, and only the shots a continuation needs are: a sibling file’s other shots are not compiled. A scene withoutcontinue:comes back as it is.- Return type:
- an.continuity.end_states(doc, entity_ids, *, at)[source]#
{entity id: EntityEnd}of a compiled document evaluated atat: each entity’s own transform (an alias such asrotation_radfolded into the property it writes), then every animated channel of its nodes, one per write group.